i am coding an angular app i already created my app routing
AdminDashboard.config(['$routeProvider','$locationProvider',function($routeProvider, $locationProvider){
$routeProvider
.when('/',{
templateUrl: '../dashboard/administration/dashboard.html',
controller : 'Dashboard'}
)
//Students Routes
.when('/Students', {
templateUrl : '../dashboard/administration/students/students.html',
controller: 'ShowStudentsController'}
)
.when('/Students/:studentId/edit',{
templateUrl : '../dashboard/administration/students/modals/edit.html',
controller: 'EditStudentsController'
})
.when('/Students/create',{
templateUrl : '../dashboard/administration/students/modals/create.html',
controller: 'CreateStudentsController'
});
}]);
and the history wasn't working i did a research on Anuglar API and i found that i've to add.
$locationProvider.html5Mode(true);
and then the browser back button was working and getting to the previous route but the template won't render. Please help me. And i hope my question is clear.