more page added

This commit is contained in:
Olu Amey
2022-10-01 18:13:32 -04:00
parent c4a29c166b
commit 254eb0f10e
35 changed files with 473 additions and 21 deletions
+38 -18
View File
@@ -1,22 +1,42 @@
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: 'home',
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: 'home',
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
},
{
path: '',
redirectTo: 'home',
pathMatch: 'full'
},
{
path: 'dash',
loadChildren: () => import('./users/dash/dash.module').then( m => m.DashPageModule)
},
path: '',
redirectTo: 'home',
pathMatch: 'full'
{
path: 'schedule',
loadChildren: () => import('./users/schedule/schedule.module').then( m => m.SchedulePageModule)
},
{
path: 'profile',
loadChildren: () => import('./users/profile/profile.module').then( m => m.ProfilePageModule)
},
{
path: 'erx',
loadChildren: () => import('./users/erx/erx.module').then( m => m.ErxPageModule)
},
{
path: 'encounter',
loadChildren: () => import('./users/encounter/encounter.module').then( m => m.EncounterPageModule)
];
},
@NgModule({
imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
],
exports: [RouterModule]
})
export class AppRoutingModule { }
];
@NgModule({
imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
],
exports: [RouterModule]
})