mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 16:30:13 +01:00
feat(forms): add the form inputs and the form layouts pages
This commit is contained in:
parent
8649247f87
commit
3e47df7526
11 changed files with 685 additions and 47 deletions
|
|
@ -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)],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue