One challenge I am facing involves the definition of multiple routes as shown below:
$routeProvider
.when('/user/find', {
templateUrl: '/partials/login.html'
});
I am looking for a way to dynamically modify my routes, so they would appear like this example:
.when('myroot/user/find'
While I could use a variable and concatenate it with 'user/find' like myvar+'user/find'
, this approach results in excessive duplication, especially when dealing with numerous routes.