Here is my JS
.when('/showprofile/:UserID', {
templateUrl: 'resources/views/layout/showprofile.php',
controller: 'ShowOrderController',
})
and in the last line i have
app.controller('ShowOrderController', function($scope, $routeParams) {
$scope.UserID = $routeParams.UserID;
});
Here's the link i am dealing with
localhost/project/#/showprofile/18
Whenever i enter this link, i am getting redirected to
localhost/project/#/showprofile/:UserID
Why it is redirected ? What is the mistake i am doing ?