fuse-angular/src/app/main/content/apps/chat/chat.module.ts

49 lines
1.5 KiB
TypeScript
Raw Normal View History

2017-08-17 07:40:25 +00:00
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from '@fuse/modules/shared.module';
2017-08-18 11:50:19 +00:00
import { FuseChatComponent } from './chat.component';
2017-08-17 07:40:25 +00:00
import { ChatService } from './chat.service';
2017-08-18 11:50:19 +00:00
import { FuseChatViewComponent } from './chat-view/chat-view.component';
import { FuseChatStartComponent } from './chat-start/chat-start.component';
import { FuseChatChatsSidenavComponent } from './sidenavs/left/chats/chats.component';
import { FuseChatUserSidenavComponent } from './sidenavs/left/user/user.component';
import { FuseChatLeftSidenavComponent } from './sidenavs/left/left.component';
import { FuseChatRightSidenavComponent } from './sidenavs/right/right.component';
import { FuseChatContactSidenavComponent } from './sidenavs/right/contact/contact.component';
const routes: Routes = [
{
2017-08-17 07:40:25 +00:00
path : '**',
2017-08-18 11:50:19 +00:00
component: FuseChatComponent,
2017-08-17 07:40:25 +00:00
children : [],
resolve : {
chat: ChatService
}
}
2017-07-12 12:35:07 +00:00
];
@NgModule({
imports : [
SharedModule,
RouterModule.forChild(routes)
],
declarations: [
2017-08-18 11:50:19 +00:00
FuseChatComponent,
FuseChatViewComponent,
FuseChatStartComponent,
FuseChatChatsSidenavComponent,
FuseChatUserSidenavComponent,
FuseChatLeftSidenavComponent,
FuseChatRightSidenavComponent,
FuseChatContactSidenavComponent
],
providers : [
ChatService
]
})
export class FuseChatModule
{
}