The AngularJS documentation indicates that the ngRoute
$routeProvider
has a reload
method.
reload()
Causes $route service to reload the current route even if $location hasn't changed.
As can be seen in this screen shot, the $routeProvider
does not have a reload
method.
I am initializing my module like this:
var pageApp = angular.module('pageApp', ['ngRoute']);
and I am requesting the $resourceProvider
like this:
pageApp.config([
'$controllerProvider',
'$compileProvider',
'$filterProvider',
'$routeProvider',
'$provide',
function($controllerProvider,
$compileProvider,
$filterProvider,
$routeProvider,
$provide) {
//generate attached screenshot output
console.log($routeProvider);
/* ... */
}]);
I am using version 1.2.5