Rename Operation controller to Operation List component.

This commit is contained in:
Alexis Lahouze 2017-07-30 15:16:44 +02:00
parent 8d63b30a32
commit 072efe7fc3
3 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ import { BalanceChartComponent } from './balanceChart.component';
import { CategoryChartComponent } from './categoryChart.component'; import { CategoryChartComponent } from './categoryChart.component';
import { OperationService } from './operation.service'; import { OperationService } from './operation.service';
import { OperationController } from './operation.controller'; import { OperationListComponent } from './operationList.component';
export default angular.module('accountant.operations', [ export default angular.module('accountant.operations', [
ngResource, ngResource,
@ -45,7 +45,7 @@ export default angular.module('accountant.operations', [
]) ])
.directive('operationListComponent', downgradeComponent({ .directive('operationListComponent', downgradeComponent({
component: OperationController component: OperationListComponent
})) }))
.name; .name;

View File

@ -13,7 +13,7 @@ import { CategoryChartComponent } from './categoryChart.component';
import { OperationRowComponent } from './operationRow.component'; import { OperationRowComponent } from './operationRow.component';
import { CategoryService } from './category.service'; import { CategoryService } from './category.service';
import { OperationService } from './operation.service'; import { OperationService } from './operation.service';
import { OperationController } from './operation.controller'; import { OperationListComponent } from './operationList.component';
export function $modalServiceFactory(i: any) { export function $modalServiceFactory(i: any) {
return i.get('$modal'); return i.get('$modal');
@ -48,13 +48,13 @@ export function accountIdServiceFactory(i: any) {
BalanceChartComponent, BalanceChartComponent,
CategoryChartComponent, CategoryChartComponent,
OperationRowComponent, OperationRowComponent,
OperationController, OperationListComponent,
], ],
entryComponents: [ entryComponents: [
BalanceChartComponent, BalanceChartComponent,
CategoryChartComponent, CategoryChartComponent,
OperationRowComponent, OperationRowComponent,
OperationController, OperationListComponent,
] ]
}) })
export class OperationModule {} export class OperationModule {}

View File

@ -61,7 +61,7 @@ import { OperationService } from './operation.service';
</div> </div>
` `
}) })
export class OperationController implements OnInit { export class OperationListComponent implements OnInit {
private account: Account; private account: Account;
private minDate: Date; private minDate: Date;
private maxDate: Date; private maxDate: Date;