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

47 lines
1.4 KiB
TypeScript
Raw Normal View History

2017-08-17 07:40:25 +00:00
import { NgModule } from '@angular/core';
import { SharedModule } from '../../../../core/modules/shared.module';
import { RouterModule, Routes } from '@angular/router';
import { ChatComponent } from './chat.component';
import { ChatService } from './chat.service';
import { ChatViewComponent } from './chat-view/chat-view.component';
import { ChatStartComponent } from './chat-start/chat-start.component';
2017-08-17 07:40:25 +00:00
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';
const routes: Routes = [
{
2017-08-17 07:40:25 +00:00
path : '**',
component: ChatComponent,
children : [],
resolve : {
chat: ChatService
}
}
2017-07-12 12:35:07 +00:00
];
@NgModule({
imports : [
SharedModule,
RouterModule.forChild(routes)
],
declarations: [
ChatComponent,
ChatViewComponent,
ChatStartComponent,
ChatsSidenavComponent,
UserSidenavComponent,
LeftSidenavComponent,
RightSidenavComponent,
ContactSidenavComponent
],
providers : [
ChatService
]
})
export class FuseChatModule
{
}