I am trying to perform wildcard (*) routing in Angular js through the following code snippet:
$routeProvider.when('/something/:action/:id/:params*\/', { templateUrl : "/js/angular/views/sample/index.html", controller : 'SampleCtrl' }).otherwise({ redirectTo: '/something/all' //This exists in real code });
sample path: / # / something / details / 201/1
When this url is called, it executes another method. What am I doing wrong here? thanks in advance
source share