diff --git a/src/accounts/account.controller.ts b/src/accounts/account.component.ts similarity index 99% rename from src/accounts/account.controller.ts rename to src/accounts/account.component.ts index 9272511..c01cef8 100644 --- a/src/accounts/account.controller.ts +++ b/src/accounts/account.component.ts @@ -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[]; diff --git a/src/accounts/index.ts b/src/accounts/index.ts index d14b902..2bdb8e3 100644 --- a/src/accounts/index.ts +++ b/src/accounts/index.ts @@ -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;