Fix controller aliases.

This commit is contained in:
Alexis Lahouze 2016-02-08 21:42:14 +01:00
parent d95d735ace
commit 7f4f4b3724
1 changed files with 3 additions and 3 deletions

View File

@ -56,17 +56,17 @@ angular.module('accountant', [
.when('/account/:accountId/operations', {
templateUrl: 'static/templates/operations.html',
controller: 'OperationController',
controllerAs: 'operations'
controllerAs: 'operationsCtrl'
})
.when('/account/:accountId/scheduler', {
templateUrl: 'static/templates/scheduler.html',
controller: 'SchedulerController',
controllerAs: 'scheduler'
controllerAs: 'schedulerCtrl'
})
.when('/accounts', {
templateUrl: 'static/templates/accounts.html',
controller: 'AccountController',
controllerAs: 'accounts'
controllerAs: 'accountsCtrl'
})
.otherwise({
redirectTo: '/accounts'