2020-12-30 11:13:50 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: () => import('./index/index.module').then(m => m.IndexPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
|
2021-03-04 18:50:26 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'messages',
|
|
|
|
|
loadChildren: () => import('./shared/chat/messages/messages.module').then( m => m.MessagesPageModule)
|
|
|
|
|
}
|
2020-12-30 11:13:50 +01:00
|
|
|
|
|
|
|
|
];
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
|
|
|
],
|
|
|
|
|
exports: [RouterModule]
|
|
|
|
|
})
|