I am creating an app on angular in which I need every user has its separate page.
localhost/{username}
below are my routing param,
app.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl : '../../views/index_old.html',
})
.when('/email/signup', {
templateUrl : '../../views/emailsignup.html',
controller : 'myCont'
})
.when('/email/code/', {
templateUrl : '../../views/emailcode.html',
controller : 'codeCheck'
})
.when('/user/basic/', {
templateUrl : '../../views/basicInfo.html',
controller : 'userbasicInfo'
})
.when('/user/location/', {
templateUrl : '../../views/userLocation.html',
controller : 'userLocation'
})
});
I am not able to pass username in the urls. Is there any way to do that.