2017-05-05 15:49:52 +03:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
|
2017-05-06 14:52:41 +03:00
|
|
|
import { FormsComponent } from './forms.component';
|
|
|
|
|
import { FormInputsComponent } from './form-inputs/form-inputs.component';
|
2017-07-07 15:09:01 +03:00
|
|
|
import { FormLayoutsComponent } from './form-layouts/form-layouts.component';
|
2018-11-19 16:57:35 +02:00
|
|
|
import { DatepickerComponent } from './datepicker/datepicker.component';
|
|
|
|
|
import { ButtonsComponent } from './buttons/buttons.component';
|
2017-05-05 15:49:52 +03:00
|
|
|
|
|
|
|
|
const routes: Routes = [{
|
|
|
|
|
path: '',
|
2017-05-06 14:52:41 +03:00
|
|
|
component: FormsComponent,
|
2018-11-19 16:57:35 +02:00
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'inputs',
|
|
|
|
|
component: FormInputsComponent,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'layouts',
|
|
|
|
|
component: FormLayoutsComponent,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'layouts',
|
|
|
|
|
component: FormLayoutsComponent,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'buttons',
|
|
|
|
|
component: ButtonsComponent,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'datepicker',
|
|
|
|
|
component: DatepickerComponent,
|
|
|
|
|
},
|
|
|
|
|
],
|
2017-05-05 15:49:52 +03:00
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
RouterModule.forChild(routes),
|
|
|
|
|
],
|
|
|
|
|
exports: [
|
|
|
|
|
RouterModule,
|
|
|
|
|
],
|
|
|
|
|
})
|
2017-05-06 14:52:41 +03:00
|
|
|
export class FormsRoutingModule {
|
2017-05-05 15:49:52 +03:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const routedComponents = [
|
2017-05-06 14:52:41 +03:00
|
|
|
FormsComponent,
|
|
|
|
|
FormInputsComponent,
|
2017-07-07 15:09:01 +03:00
|
|
|
FormLayoutsComponent,
|
2018-11-19 16:57:35 +02:00
|
|
|
DatepickerComponent,
|
2017-05-05 15:49:52 +03:00
|
|
|
];
|