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

45 lines
1.3 KiB
TypeScript
Raw Normal View History

import {NgModule} from '@angular/core';
2017-07-12 12:35:07 +00:00
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';
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 = [
{
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 ChatModule
{
}