update router

This commit is contained in:
Çetin
2021-12-23 17:27:15 +03:00
parent 5ca76d76bc
commit 41a20dee68
3 changed files with 31 additions and 10 deletions
+27
View File
@@ -0,0 +1,27 @@
import { NgModule } from '@angular/core';
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 { MenusDemoComponent } from '../menusdemo.component';
@NgModule({
declarations: [],
imports: [
CommonModule,
RouterModule.forChild([
{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]
})
export class MenudemoModule { }