Rename account controller to component.
This commit is contained in:
parent
839002cc47
commit
faa2abfca3
@ -5,7 +5,7 @@ var accountFormTmpl = require('./account.form.tmpl.html'),
|
|||||||
|
|
||||||
import { Account } from './account';
|
import { Account } from './account';
|
||||||
|
|
||||||
export class AccountController {
|
export class AccountComponent {
|
||||||
static $inject = ['AccountService', 'AccountBalances', 'Notification', '$log', '$modal'];
|
static $inject = ['AccountService', 'AccountBalances', 'Notification', '$log', '$modal'];
|
||||||
|
|
||||||
accounts: Account[];
|
accounts: Account[];
|
@ -30,7 +30,7 @@ var ngResource = require('angular-resource'),
|
|||||||
import { AccountService } from './account.service';
|
import { AccountService } from './account.service';
|
||||||
import { AccountBalancesFactory } from './accountBalances.factory';
|
import { AccountBalancesFactory } from './accountBalances.factory';
|
||||||
import { AccountConfig } from './account.config';
|
import { AccountConfig } from './account.config';
|
||||||
import { AccountController } from './account.controller';
|
import { AccountComponent } from './account.component';
|
||||||
|
|
||||||
export default angular.module('accountant.accounts', [
|
export default angular.module('accountant.accounts', [
|
||||||
ngResource,
|
ngResource,
|
||||||
@ -45,6 +45,6 @@ export default angular.module('accountant.accounts', [
|
|||||||
|
|
||||||
.factory('AccountService', downgradeInjectable(AccountService))
|
.factory('AccountService', downgradeInjectable(AccountService))
|
||||||
|
|
||||||
.controller('AccountController', AccountController)
|
.controller('AccountController', AccountComponent)
|
||||||
|
|
||||||
.name;
|
.name;
|
||||||
|
Loading…
Reference in New Issue
Block a user