Rename component.

This commit is contained in:
Alexis Lahouze 2017-07-25 16:56:57 +02:00
parent d83a164cc6
commit 2cf432ed2c
4 changed files with 8 additions and 10 deletions

View File

@ -34,7 +34,7 @@ import uiRouter from '@uirouter/angularjs';
var schedulerTmpl = require('./scheduler.html');
import { ScheduleComponent } from './schedule.component';
import { ScheduleListComponent } from './scheduleList.component';
import { ScheduleService } from './schedule.service';
export default angular.module('accountant.scheduler', [
@ -62,8 +62,8 @@ export default angular.module('accountant.scheduler', [
.factory('scheduleService', downgradeInjectable(ScheduleService))
.directive('scheduleComponent', downgradeComponent({
component: ScheduleComponent
.directive('scheduleListComponent', downgradeComponent({
component: ScheduleListComponent
}))
.run(function($transitions, accountIdService) {

View File

@ -13,7 +13,7 @@ import { ToastrModule } from 'ngx-toastr';
import { ScheduleService } from './schedule.service';
import { ScheduleDeleteModalComponent } from './scheduleDeleteModal.component';
import { ScheduleRowComponent } from './scheduleRow.component';
import { ScheduleComponent } from './schedule.component';
import { ScheduleListComponent } from './scheduleList.component';
export function $modalServiceFactory(i: any) {
return i.get('$modal');
@ -47,12 +47,12 @@ export function accountIdServiceFactory(i: any) {
],
declarations: [
ScheduleDeleteModalComponent,
ScheduleComponent,
ScheduleListComponent,
ScheduleRowComponent
],
entryComponents: [
ScheduleDeleteModalComponent,
ScheduleComponent,
ScheduleListComponent,
ScheduleRowComponent
]
})

View File

@ -1,11 +1,9 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
import { ScheduleComponent } from './schedule.component';
export const ScheduleListState = {
name: 'scheduler',
url: '/account/:accountId/scheduler',
component: 'scheduleComponent',
component: 'scheduleListComponent',
resolve: {
accountId: function($transition$) {
return $transition$.params().accountId;

View File

@ -45,7 +45,7 @@ var scheduleFormTmpl = require('./schedule.form.tmpl.html');
</div>
`
})
export class ScheduleComponent implements OnInit {
export class ScheduleListComponent implements OnInit {
accountId: number;
schedules = [];