My controllers are being fired twice when I refresh the page. However, if I navigate to the page from elsewhere in the app the controller just fires once, as expected. The issue only arises if I then refresh the page.
This is a similar issue to these two questions :
However, the issue I am facing is different in that I am only declaring my controller in the routeProvider config.
$routeProvider.when('/render/pools/', {
templateUrl: "app/components/render/pools/views/pools.tpl.html",
controller: "PoolsCtrl"
});
I'm inclined to believe that it is an issue with the routeProvider module and how I've configured it. I'm certain that my controllers are only being declared in the routeProvider config. I'm not using ng-controller
at any point.
Any suggestions?