2017-07-08 16:12:52 +00:00
|
|
|
import {NgModule} from '@angular/core';
|
2017-08-02 08:53:30 +00:00
|
|
|
import {SharedModule} from '../../../../core/modules/shared.module';
|
2017-07-08 16:12:52 +00:00
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {ChatComponent} from './chat.component';
|
2017-07-23 07:32:13 +00:00
|
|
|
import {ChatService} from './chat.service';
|
|
|
|
import { ChatViewComponent } from './chat-view/chat-view.component';
|
|
|
|
import { ChatStartComponent } from './chat-start/chat-start.component';
|
|
|
|
import {ChatsSidenavComponent} from './sidenavs/left/chats/chats.component';
|
|
|
|
import { UserSidenavComponent } from './sidenavs/left/user/user.component';
|
|
|
|
import { LeftSidenavComponent } from './sidenavs/left/left.component';
|
|
|
|
import { RightSidenavComponent } from './sidenavs/right/right.component';
|
|
|
|
import { ContactSidenavComponent } from './sidenavs/right/contact/contact.component';
|
2017-07-08 16:12:52 +00:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
2017-07-23 15:20:48 +00:00
|
|
|
path : '**', component: ChatComponent, children: [],
|
2017-07-23 07:32:13 +00:00
|
|
|
resolve: {
|
|
|
|
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({
|
|
|
|
imports : [
|
|
|
|
SharedModule,
|
|
|
|
RouterModule.forChild(routes)
|
|
|
|
],
|
|
|
|
declarations: [
|
2017-07-23 07:32:13 +00:00
|
|
|
ChatComponent,
|
|
|
|
ChatViewComponent,
|
|
|
|
ChatStartComponent,
|
|
|
|
ChatsSidenavComponent,
|
|
|
|
UserSidenavComponent,
|
|
|
|
LeftSidenavComponent,
|
|
|
|
RightSidenavComponent,
|
|
|
|
ContactSidenavComponent
|
|
|
|
],
|
|
|
|
providers : [
|
|
|
|
ChatService
|
2017-07-08 16:12:52 +00:00
|
|
|
]
|
|
|
|
})
|
2017-07-26 21:33:17 +00:00
|
|
|
export class FuseChatModule
|
2017-07-08 16:12:52 +00:00
|
|
|
{
|
|
|
|
}
|