feat(forms): add the form inputs and the form layouts pages

This commit is contained in:
Alexander Zhukov 2017-05-05 15:49:52 +03:00
parent 8649247f87
commit 3e47df7526
11 changed files with 685 additions and 47 deletions

View file

@ -8,21 +8,36 @@ import { MapsComponent } from './maps/maps.component';
import { NgxChartsComponent } from './charts/charts.component';
import { NgxEditorsComponent } from './editors/editors.component';
const routes: Routes = [
{
const routes: Routes = [{
path: '',
component: PagesComponent,
children: [{
path: 'dashboard',
component: DashboardComponent,
}, {
path: 'ui-features',
loadChildren: './ui-features/ui-features.module#NgxUiFeaturesModule',
}, {
path: 'components',
component: ComponentsComponent,
}, {
path: 'maps',
component: MapsComponent,
}, {
path: 'charts',
component: NgxChartsComponent,
}, {
path: 'editors',
loadChildren: './editors/editors.module#NgxEditorsModule',
}, {
path: 'forms',
loadChildren: './forms/forms.module#NgxFormsModule',
}, {
path: '',
component: PagesComponent,
children: [
{ path: 'dashboard', component: DashboardComponent },
{ path: 'ui-features', loadChildren: './ui-features/ui-features.module#NgxUiFeaturesModule' },
{ path: 'components', component: ComponentsComponent },
{ path: 'maps', component: MapsComponent },
{ path: 'charts', component: NgxChartsComponent },
{ path: 'editors', loadChildren: './editors/editors.module#NgxEditorsModule' },
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
],
},
];
redirectTo: 'dashboard',
pathMatch: 'full',
}],
}];
@NgModule({
imports: [RouterModule.forChild(routes)],