I'm using the router that comes with Angular 1.3.8. I've noticed that when a view is loaded and I do a browser refresh, that the controller for that view is not reloaded. I have to go to another view and then back to get it to reload. What is the reason for this and is there a way to get it to reload on a refresh?
Thanks.
Router Code:
$routeProvider
.when('/Grid', {
templateUrl: "Home/Grid",
controller: "GridExample",
controllerAs: 'vm'
})
.when('/AutoComplete', {
templateUrl: "Home/AutoComplete",
controller: "AutoComplete",
controllerAs: 'vm'
})
.when('/WebApi', {
templateUrl: "Home/WebApi",
controller: "WebapiGridExample",
controllerAs: 'vm'
})
.otherwise(
{
redirectTo: '/home/Index'
});