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 { 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;

View File

@ -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 {}

View File

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