I'm attempting to implement a wildcard (*) routing functionality in AngularJS using the code snippet below:
$routeProvider.when('/something/:action/:id/:params*\/', {
templateUrl : "/js/angular/views/sample/index.html",
controller : 'SampleCtrl'
}).otherwise({
redirectTo: '/something/all' //This is in the actual code
});
Example path: /#/something/details/201/1
When I try to access this URL, it always redirects to the 'otherwise' method. What could be the mistake in my implementation? Thanks in advance