Rename component.
This commit is contained in:
parent
d83a164cc6
commit
2cf432ed2c
@ -34,7 +34,7 @@ import uiRouter from '@uirouter/angularjs';
|
|||||||
|
|
||||||
var schedulerTmpl = require('./scheduler.html');
|
var schedulerTmpl = require('./scheduler.html');
|
||||||
|
|
||||||
import { ScheduleComponent } from './schedule.component';
|
import { ScheduleListComponent } from './scheduleList.component';
|
||||||
import { ScheduleService } from './schedule.service';
|
import { ScheduleService } from './schedule.service';
|
||||||
|
|
||||||
export default angular.module('accountant.scheduler', [
|
export default angular.module('accountant.scheduler', [
|
||||||
@ -62,8 +62,8 @@ export default angular.module('accountant.scheduler', [
|
|||||||
|
|
||||||
.factory('scheduleService', downgradeInjectable(ScheduleService))
|
.factory('scheduleService', downgradeInjectable(ScheduleService))
|
||||||
|
|
||||||
.directive('scheduleComponent', downgradeComponent({
|
.directive('scheduleListComponent', downgradeComponent({
|
||||||
component: ScheduleComponent
|
component: ScheduleListComponent
|
||||||
}))
|
}))
|
||||||
|
|
||||||
.run(function($transitions, accountIdService) {
|
.run(function($transitions, accountIdService) {
|
||||||
|
@ -13,7 +13,7 @@ import { ToastrModule } from 'ngx-toastr';
|
|||||||
import { ScheduleService } from './schedule.service';
|
import { ScheduleService } from './schedule.service';
|
||||||
import { ScheduleDeleteModalComponent } from './scheduleDeleteModal.component';
|
import { ScheduleDeleteModalComponent } from './scheduleDeleteModal.component';
|
||||||
import { ScheduleRowComponent } from './scheduleRow.component';
|
import { ScheduleRowComponent } from './scheduleRow.component';
|
||||||
import { ScheduleComponent } from './schedule.component';
|
import { ScheduleListComponent } from './scheduleList.component';
|
||||||
|
|
||||||
export function $modalServiceFactory(i: any) {
|
export function $modalServiceFactory(i: any) {
|
||||||
return i.get('$modal');
|
return i.get('$modal');
|
||||||
@ -47,12 +47,12 @@ export function accountIdServiceFactory(i: any) {
|
|||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ScheduleDeleteModalComponent,
|
ScheduleDeleteModalComponent,
|
||||||
ScheduleComponent,
|
ScheduleListComponent,
|
||||||
ScheduleRowComponent
|
ScheduleRowComponent
|
||||||
],
|
],
|
||||||
entryComponents: [
|
entryComponents: [
|
||||||
ScheduleDeleteModalComponent,
|
ScheduleDeleteModalComponent,
|
||||||
ScheduleComponent,
|
ScheduleListComponent,
|
||||||
ScheduleRowComponent
|
ScheduleRowComponent
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
||||||
|
|
||||||
import { ScheduleComponent } from './schedule.component';
|
|
||||||
|
|
||||||
export const ScheduleListState = {
|
export const ScheduleListState = {
|
||||||
name: 'scheduler',
|
name: 'scheduler',
|
||||||
url: '/account/:accountId/scheduler',
|
url: '/account/:accountId/scheduler',
|
||||||
component: 'scheduleComponent',
|
component: 'scheduleListComponent',
|
||||||
resolve: {
|
resolve: {
|
||||||
accountId: function($transition$) {
|
accountId: function($transition$) {
|
||||||
return $transition$.params().accountId;
|
return $transition$.params().accountId;
|
||||||
|
@ -45,7 +45,7 @@ var scheduleFormTmpl = require('./schedule.form.tmpl.html');
|
|||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
export class ScheduleComponent implements OnInit {
|
export class ScheduleListComponent implements OnInit {
|
||||||
accountId: number;
|
accountId: number;
|
||||||
schedules = [];
|
schedules = [];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user