Rename Operation controller to Operation List component.
This commit is contained in:
parent
8d63b30a32
commit
072efe7fc3
@ -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;
|
||||
|
@ -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 {}
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user