Here's my url
localhost/project/#/showprofile/18
I want to display the parameter 18 in my view
In the app.js i have
.when('/showprofile/:UserID', {
title: 'Show User Profile',
templateUrl: 'views/layout/showprofile.php',
controller: 'authCtrl',
})
Here the page showprofile.php is displaying, but suddenly the url goes like this
localhost/project/#/showprofile/:UserId
How can i get the value 18 inside the showprofile.php and make the url as it is i.e.,
localhost/project/#/showprofile/18