angular.module('appTN', ['app.filters', 'app.services', 'app.directives'])
.
config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/dash', {
templateUrl: 'partials/dash.html',
controller: DashCtrl
});
$routeProvider.when('/perf/sum/:lgaId', {
templateUrl: 'partials/perf.html',
controller: PerfCtrl
});
From the Nolan's comment I'm inferring I need to use this on everyone of my controllers. Is there a way to put this on a global level?
The function I'm calling is a service method.
Thanks.