2021-03-05 16:43:17 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
|
2021-03-11 16:21:09 +01:00
|
|
|
import { ChatPage } from './pages/chat/chat.page';
|
2021-03-05 16:43:17 +01:00
|
|
|
import { MessagesPage } from './pages/chat/messages/messages.page';
|
|
|
|
|
|
|
|
|
|
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-11 16:21:09 +01:00
|
|
|
/* {
|
|
|
|
|
path: 'chat',
|
|
|
|
|
component: ChatPage
|
2021-03-05 16:43:17 +01:00
|
|
|
} */
|
2021-03-04 18:50:26 +01:00
|
|
|
|
2021-03-05 16:43:17 +01:00
|
|
|
];
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
|
|
|
],
|
|
|
|
|
exports: [RouterModule]
|
|
|
|
|
})
|
|
|
|
|
export class AppRoutingModule {}
|