Rename account controller to component.

This commit is contained in:
Alexis Lahouze 2017-07-14 21:38:29 +02:00
parent 839002cc47
commit faa2abfca3
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ var accountFormTmpl = require('./account.form.tmpl.html'),
import { Account } from './account';
export class AccountController {
export class AccountComponent {
static $inject = ['AccountService', 'AccountBalances', 'Notification', '$log', '$modal'];
accounts: Account[];

View File

@ -30,7 +30,7 @@ var ngResource = require('angular-resource'),
import { AccountService } from './account.service';
import { AccountBalancesFactory } from './accountBalances.factory';
import { AccountConfig } from './account.config';
import { AccountController } from './account.controller';
import { AccountComponent } from './account.component';
export default angular.module('accountant.accounts', [
ngResource,
@ -45,6 +45,6 @@ export default angular.module('accountant.accounts', [
.factory('AccountService', downgradeInjectable(AccountService))
.controller('AccountController', AccountController)
.controller('AccountController', AccountComponent)
.name;