Use account service.
This commit is contained in:
@ -2,7 +2,7 @@ var operationFormTmpl = require('./operation.form.tmpl.html'),
|
||||
operationDeleteTmpl = require('./operation.delete.tmpl.html');
|
||||
|
||||
module.exports = function($routeParams, $modal, Notification, Operation,
|
||||
Account) {
|
||||
AccountService) {
|
||||
|
||||
var vm = this;
|
||||
|
||||
@ -145,5 +145,7 @@ module.exports = function($routeParams, $modal, Notification, Operation,
|
||||
vm.operations = vm.load(minDate, maxDate);
|
||||
};
|
||||
|
||||
vm.account = Account.get({id: $routeParams.accountId});
|
||||
AccountService.get($routeParams.accountId).subscribe(account => {
|
||||
vm.account = account
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user