Refactor
This commit is contained in:
parent
41a20dee68
commit
060fb2c42d
@ -24,10 +24,6 @@ import {FloatLabelDemoComponent} from './demo/view/floatlabeldemo.component';
|
||||
import {InvalidStateDemoComponent} from './demo/view/invalidstatedemo.component';
|
||||
import {AppTimelineDemoComponent} from './pages/app.timelinedemo.component';
|
||||
import {IconsDemoComponent} from './demo/view/iconsdemo.component';
|
||||
import {SeatDemoComponent} from './demo/view/menu/seatdemo.component';
|
||||
import {PersonalDemoComponent} from './demo/view/menu/personaldemo.component';
|
||||
import {ConfirmationDemoComponent} from './demo/view/menu/confirmationdemo.component';
|
||||
import {PaymentDemoComponent} from './demo/view/menu/paymentdemo.component';
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forRoot([
|
||||
|
@ -3,9 +3,9 @@ import { CommonModule } from '@angular/common';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { PaymentDemoComponent } from './paymentdemo.component';
|
||||
import {SeatDemoComponent} from './seatdemo.component';
|
||||
import {PersonalDemoComponent} from './personaldemo.component';
|
||||
import {ConfirmationDemoComponent} from './confirmationdemo.component';
|
||||
import { SeatDemoComponent } from './seatdemo.component';
|
||||
import { PersonalDemoComponent } from './personaldemo.component';
|
||||
import { ConfirmationDemoComponent } from './confirmationdemo.component';
|
||||
import { MenusDemoComponent } from '../menusdemo.component';
|
||||
|
||||
@NgModule({
|
||||
@ -13,13 +13,13 @@ import { MenusDemoComponent } from '../menusdemo.component';
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule.forChild([
|
||||
{path:'',component: MenusDemoComponent, children:[
|
||||
{path:'',component: MenusDemoComponent, children:[
|
||||
{path:'', redirectTo: 'personal', pathMatch: 'full'},
|
||||
{path: 'personal', component: PersonalDemoComponent},
|
||||
{path: 'confirmation', component: ConfirmationDemoComponent},
|
||||
{path: 'seat', component: SeatDemoComponent},
|
||||
{path: 'payment', component: PaymentDemoComponent}
|
||||
]}
|
||||
]}
|
||||
])
|
||||
],
|
||||
exports: [RouterModule]
|
||||
|
Loading…
Reference in New Issue
Block a user