i\'m simply doing setting this:
app.config([\'$routeProvider\',function($routeProvider) {
$routeProvider
.when(\'/asd/:id/:slug\',{
templateUrl:\'vie
Current route allows you to use regular expression. Inject $route service and explore current route object. Namely regexp part:
$route.current.regexp
This is how you can use it (example from controller method to check if current menu item (which has dynamic parts) should be activated):
$scope.isActive = function (path) {
if ($route.current && $route.current.regexp) {
return $route.current.regexp.test(path);
}
return false;
};