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 { 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;
|
||||||
|
@ -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 {}
|
||||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user