2017-08-17 07:40:25 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2018-02-17 14:21:38 +00:00
|
|
|
|
2018-08-28 04:03:19 +00:00
|
|
|
import {
|
|
|
|
MatButtonModule, MatCardModule, MatFormFieldModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatRadioModule, MatSidenavModule, MatToolbarModule
|
|
|
|
} from '@angular/material';
|
2018-03-05 09:17:32 +00:00
|
|
|
|
2018-02-21 06:36:41 +00:00
|
|
|
import { FuseSharedModule } from '@fuse/shared.module';
|
2018-02-17 14:21:38 +00:00
|
|
|
|
2018-05-20 07:12:31 +00:00
|
|
|
import { ChatService } from 'app/main/apps/chat/chat.service';
|
|
|
|
import { ChatComponent } from 'app/main/apps/chat/chat.component';
|
|
|
|
import { ChatStartComponent } from 'app/main/apps/chat/chat-start/chat-start.component';
|
|
|
|
import { ChatViewComponent } from 'app/main/apps/chat/chat-view/chat-view.component';
|
|
|
|
import { ChatChatsSidenavComponent } from 'app/main/apps/chat/sidenavs/left/chats/chats.component';
|
|
|
|
import { ChatUserSidenavComponent } from 'app/main/apps/chat/sidenavs/left/user/user.component';
|
|
|
|
import { ChatLeftSidenavComponent } from 'app/main/apps/chat/sidenavs/left/left.component';
|
|
|
|
import { ChatRightSidenavComponent } from 'app/main/apps/chat/sidenavs/right/right.component';
|
|
|
|
import { ChatContactSidenavComponent } from 'app/main/apps/chat/sidenavs/right/contact/contact.component';
|
2017-07-08 16:12:52 +00:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
2018-08-28 04:03:19 +00:00
|
|
|
path: '**',
|
2018-05-20 07:12:31 +00:00
|
|
|
component: ChatComponent,
|
2018-08-28 04:03:19 +00:00
|
|
|
children: [],
|
|
|
|
resolve: {
|
2017-07-23 07:32:13 +00:00
|
|
|
chat: ChatService
|
|
|
|
}
|
2017-07-08 16:12:52 +00:00
|
|
|
}
|
2017-07-12 12:35:07 +00:00
|
|
|
];
|
2017-07-08 16:12:52 +00:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
2018-05-20 07:12:31 +00:00
|
|
|
ChatComponent,
|
|
|
|
ChatViewComponent,
|
|
|
|
ChatStartComponent,
|
|
|
|
ChatChatsSidenavComponent,
|
|
|
|
ChatUserSidenavComponent,
|
|
|
|
ChatLeftSidenavComponent,
|
|
|
|
ChatRightSidenavComponent,
|
|
|
|
ChatContactSidenavComponent
|
2017-07-23 07:32:13 +00:00
|
|
|
],
|
2018-03-05 09:17:32 +00:00
|
|
|
imports : [
|
|
|
|
RouterModule.forChild(routes),
|
|
|
|
|
|
|
|
MatButtonModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatFormFieldModule,
|
|
|
|
MatIconModule,
|
|
|
|
MatInputModule,
|
|
|
|
MatListModule,
|
|
|
|
MatMenuModule,
|
|
|
|
MatRadioModule,
|
|
|
|
MatSidenavModule,
|
|
|
|
MatToolbarModule,
|
|
|
|
|
|
|
|
FuseSharedModule
|
|
|
|
],
|
2017-07-23 07:32:13 +00:00
|
|
|
providers : [
|
|
|
|
ChatService
|
2017-07-08 16:12:52 +00:00
|
|
|
]
|
|
|
|
})
|
2018-05-20 07:12:31 +00:00
|
|
|
export class ChatModule
|
2017-07-08 16:12:52 +00:00
|
|
|
{
|
|
|
|
}
|