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: 'merms-login', loadChildren: () => import('./merms-login/merms-login.module').then( m => m.MermsLoginPageModule) }, { path: 'merms-signup', loadChildren: () => import('./merms-signup/merms-signup.module').then( m => m.MermsSignupPageModule) }, { path: 'merms-dash', loadChildren: () => import('./merms-dash/merms-dash.module').then( m => m.MermsDashPageModule) }, { path: 'merms-settings', loadChildren: () => import('./merms-settings/merms-settings.module').then( m => m.MermsSettingsPageModule) }, { path: 'merms-practice', loadChildren: () => import('./merms-practice/merms-practice.module').then( m => m.MermsPracticePageModule) }, { path: 'merms-patient', loadChildren: () => import('./merms-patient/merms-patient.module').then( m => m.MermsPatientPageModule) }, { path: 'merms-calendar', loadChildren: () => import('./merms-calendar/merms-calendar.module').then( m => m.MermsCalendarPageModule) }, { path: 'merms-wallet', loadChildren: () => import('./merms-wallet/merms-wallet.module').then( m => m.MermsWalletPageModule) }, { path: 'merms-mypatients', loadChildren: () => import('./merms-mypatients/merms-mypatients.module').then( m => m.MermsMypatientsPageModule) }, { path: 'merms-managepatient', loadChildren: () => import('./merms-managepatient/merms-managepatient.module').then( m => m.MermsManagepatientPageModule) }, ]; @NgModule({ imports: [ RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) ], exports: [RouterModule] }) export class AppRoutingModule { }