You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.3 KiB
TypeScript
77 lines
2.3 KiB
TypeScript
import { HmgCommonModule } from './../hmg-common/hmg-common.module';
|
|
import { HomeComponent } from './home/home.component';
|
|
import { NgModule } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import { IonicModule } from '@ionic/angular';
|
|
import { VacationRulePage } from './vacation-rule.page';
|
|
import { VacationTypeComponent } from './vacation-type/vacation-type.component';
|
|
import { NotificationTypeComponent } from './notification-type/notification-type.component';
|
|
import { CreateVacationRuleComponent } from './create-vacation-rule/create-vacation-rule.component';
|
|
// import { JsonSchemaFormModule, Framework, WidgetLibraryService, FrameworkLibraryService, JsonSchemaFormService } from 'angular6-json-schema-form';
|
|
import { ReplacementListComponent } from './replacement-list/replacement-list.component';
|
|
// import { MaterialDesignFrameworkModule } from 'angular6-json-schema-form';
|
|
|
|
import { PipesModule } from '../pipes/pipes.module';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: VacationRulePage,
|
|
children: [
|
|
{
|
|
path: 'home',
|
|
component: HomeComponent
|
|
},
|
|
{
|
|
path: 'vacation-type',
|
|
component: VacationTypeComponent
|
|
},
|
|
{
|
|
path: 'notification-type',
|
|
component: NotificationTypeComponent
|
|
},
|
|
{
|
|
path: 'create-vacation-rule',
|
|
component: CreateVacationRuleComponent
|
|
},
|
|
{
|
|
path: 'replacement-list',
|
|
component: ReplacementListComponent
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
FormsModule,
|
|
IonicModule,
|
|
PipesModule,
|
|
|
|
HmgCommonModule,
|
|
// {
|
|
// ngModule: JsonSchemaFormModule,
|
|
// providers: [
|
|
// JsonSchemaFormService,
|
|
// FrameworkLibraryService,
|
|
// WidgetLibraryService,
|
|
// // { provide: Framework, useClass: IonicFramework, multi: true }
|
|
// ]
|
|
// },
|
|
// IonicFrameworkModule,
|
|
// MaterialDesignFrameworkModule,
|
|
RouterModule.forChild(routes)
|
|
],
|
|
declarations: [
|
|
VacationRulePage,
|
|
HomeComponent,
|
|
VacationTypeComponent,
|
|
NotificationTypeComponent,
|
|
CreateVacationRuleComponent
|
|
]
|
|
})
|
|
export class VacationRulePageModule { }
|