diff --git a/src/operations/index.ts b/src/operations/index.ts index 140ca28..47d6a20 100644 --- a/src/operations/index.ts +++ b/src/operations/index.ts @@ -36,7 +36,7 @@ import { BalanceChartComponent } from './balanceChart.component'; import { CategoryChartComponent } from './categoryChart.component'; import { OperationService } from './operation.service'; -import { OperationController } from './operation.controller'; +import { OperationListComponent } from './operationList.component'; export default angular.module('accountant.operations', [ ngResource, @@ -45,7 +45,7 @@ export default angular.module('accountant.operations', [ ]) .directive('operationListComponent', downgradeComponent({ - component: OperationController + component: OperationListComponent })) .name; diff --git a/src/operations/operation.module.ts b/src/operations/operation.module.ts index 0ef9db3..2aa005c 100644 --- a/src/operations/operation.module.ts +++ b/src/operations/operation.module.ts @@ -13,7 +13,7 @@ import { CategoryChartComponent } from './categoryChart.component'; import { OperationRowComponent } from './operationRow.component'; import { CategoryService } from './category.service'; import { OperationService } from './operation.service'; -import { OperationController } from './operation.controller'; +import { OperationListComponent } from './operationList.component'; export function $modalServiceFactory(i: any) { return i.get('$modal'); @@ -48,13 +48,13 @@ export function accountIdServiceFactory(i: any) { BalanceChartComponent, CategoryChartComponent, OperationRowComponent, - OperationController, + OperationListComponent, ], entryComponents: [ BalanceChartComponent, CategoryChartComponent, OperationRowComponent, - OperationController, + OperationListComponent, ] }) export class OperationModule {} diff --git a/src/operations/operation.controller.ts b/src/operations/operationList.component.ts similarity index 98% rename from src/operations/operation.controller.ts rename to src/operations/operationList.component.ts index 4dc0c5e..ad62393 100644 --- a/src/operations/operation.controller.ts +++ b/src/operations/operationList.component.ts @@ -61,7 +61,7 @@ import { OperationService } from './operation.service'; ` }) -export class OperationController implements OnInit { +export class OperationListComponent implements OnInit { private account: Account; private minDate: Date; private maxDate: Date;