Commit 40f45d2c authored by Ratnadeep Rajendra Kharade's avatar Ratnadeep Rajendra Kharade
Browse files

updated routing module with my reservation route.

parent 46365fc2
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [ const routes: Routes = [
{ {
path: '', path: '',
redirectTo: 'login', redirectTo: 'login',
pathMatch: 'full' pathMatch: 'full'
}, },
{ {
path: 'home', path: 'home',
loadChildren: () => import('./home/home.module').then(m => m.HomePageModule) loadChildren: () => import('./home/home.module').then(m => m.HomePageModule)
}, },
{ {
path: 'list', path: 'list',
loadChildren: () => import('./list/list.module').then(m => m.ListPageModule) loadChildren: () => import('./list/list.module').then(m => m.ListPageModule)
}, },
{ {
path: 'login', path: 'login',
loadChildren: () => import('./auth/login/login.module').then( m => m.LoginPageModule) loadChildren: () => import('./auth/login/login.module').then( m => m.LoginPageModule)
}, },
{ {
path: 'register', path: 'register',
loadChildren: () => import('./auth/register/register.module').then( m => m.RegisterPageModule) loadChildren: () => import('./auth/register/register.module').then( m => m.RegisterPageModule)
}, {
path: 'myreservation',
loadChildren: () => import('./myreservation/myreservation.module').then( m => m.MyreservationPageModule)
} }
];
@NgModule({
imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) ];
],
exports: [RouterModule] @NgModule({
}) imports: [
export class AppRoutingModule {} RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
],
exports: [RouterModule]
})
export class AppRoutingModule {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment