From faa2abfca3963cb796f078e07bd37c98909d5d2d Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 14 Jul 2017 21:38:29 +0200 Subject: [PATCH] Rename account controller to component. --- src/accounts/{account.controller.ts => account.component.ts} | 2 +- src/accounts/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/accounts/{account.controller.ts => account.component.ts} (99%) 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;