46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
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: 'tabs',
|
|
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)
|
|
},
|
|
{
|
|
path: 'register',
|
|
loadChildren: () => import('./extpages/register/register.module').then(m => m.RegisterPageModule)
|
|
},
|
|
{
|
|
path: 'dash',
|
|
loadChildren: () => import('./pages/dash/dash.module').then(m => m.DashPageModule)
|
|
},
|
|
{
|
|
path: 'settings',
|
|
loadChildren: () => import('./pages/settings/settings.module').then(m => m.SettingsPageModule)
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
];
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule {}
|