2020-10-30 15:22:35 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
import { ChatPage } from './chat.page';
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
component: ChatPage
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'conversation',
|
|
|
|
|
loadChildren: () => import('./conversation/conversation.module').then( m => m.ConversationPageModule)
|
2020-09-10 09:48:37 +01:00
|
|
|
},
|
2020-10-30 15:22:35 +01:00
|
|
|
{
|
|
|
|
|
path: 'newchat',
|
2020-12-21 16:37:44 +01:00
|
|
|
loadChildren: () => import('./newchat/newchat.module').then( m => m.NewchatPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'new-group',
|
2020-12-28 10:11:00 +01:00
|
|
|
loadChildren: () => import('./new-group/new-group.module').then( m => m.NewGroupPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'group-messages',
|
2020-12-30 11:13:50 +01:00
|
|
|
loadChildren: () => import('./group-messages/group-messages.module').then( m => m.GroupMessagesPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'messages',
|
2020-09-10 09:48:37 +01:00
|
|
|
loadChildren: () => import('./messages/messages.module').then( m => m.MessagesPageModule)
|
|
|
|
|
}
|
2020-10-30 15:22:35 +01:00
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
|
exports: [RouterModule],
|
|
|
|
|
})
|