From 6ff893a08db12508841a582bb6bce42f6b8f899d Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 20 Jul 2017 23:00:52 +0200 Subject: [PATCH] Rename AccountComponent to AccountListComponent. --- .../{account.component.ts => accountList.component.ts} | 2 +- src/accounts/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/accounts/{account.component.ts => accountList.component.ts} (99%) diff --git a/src/accounts/account.component.ts b/src/accounts/accountList.component.ts similarity index 99% rename from src/accounts/account.component.ts rename to src/accounts/accountList.component.ts index cdcf98e..33e95e9 100644 --- a/src/accounts/account.component.ts +++ b/src/accounts/accountList.component.ts @@ -9,7 +9,7 @@ import { AccountService } from './account.service'; import { AccountBalancesService } from './accountBalances.service'; import { AccountDeleteModalComponent } from './accountDeleteModal.component'; import { AccountEditModalComponent } from './accountEditModal.component'; -export class AccountComponent { +export class AccountListComponent { static $inject = ['AccountService', 'AccountBalancesService', 'Notification', 'Logger', 'NgbModal']; accounts: Account[]; diff --git a/src/accounts/index.ts b/src/accounts/index.ts index 73545f8..3c53e50 100644 --- a/src/accounts/index.ts +++ b/src/accounts/index.ts @@ -34,7 +34,7 @@ var accountsTmpl = require('./accounts.html'); import { AccountBalancesService } from './accountBalances.service'; import { AccountService } from './account.service'; -import { AccountComponent } from './account.component'; +import { AccountListComponent } from './accountList.component'; export default angular.module('accountant.accounts', [ ngResource, @@ -52,7 +52,7 @@ export default angular.module('accountant.accounts', [ .factory('AccountService', downgradeInjectable(AccountService)) .component('accountList', { - controller: AccountComponent, + controller: AccountListComponent, controllerAs: 'accountsCtrl', templateUrl: accountsTmpl })