You should use it as follows:
state("home", {
url: "/{beginPath:.+}{endPath:/app/home}",
templateUrl: "assets/tpl/home.html",
controller: "homeController"
});
$stateParams.beginPath ( evertyhing /app/home/) $stateParams.endPath, /app/home/
/one/ , - :
url: "/{beginPath:one/.+}{endPath:/app/home}"