Fix controller aliases.
This commit is contained in:
parent
d95d735ace
commit
7f4f4b3724
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user