Fix controller aliases.

This commit is contained in:
Alexis Lahouze 2016-02-08 21:42:14 +01:00
parent d95d735ace
commit 7f4f4b3724

View File

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