31 lines
787 B
TypeScript
31 lines
787 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
loadChildren: () => import('./extpages/myfit/myfit.module').then(m => m.MyfitPageModule)
|
|
},
|
|
{
|
|
path: 'dash',
|
|
loadChildren: () => import('./pages/tabs/tabs.module').then(m => m.TabsPageModule)
|
|
},
|
|
{
|
|
path: 'myfit',
|
|
loadChildren: () => import('./extpages/myfit/myfit.module').then(m => m.MyfitPageModule)
|
|
},
|
|
{
|
|
path: 'login',
|
|
loadChildren: () => import('./extpages/login/login.module').then(m => m.LoginPageModule)
|
|
}
|
|
|
|
|
|
];
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule {}
|