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

63 lines
1.9 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 { MatButtonModule, MatCardModule, MatFormFieldModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatRadioModule, MatSidenavModule, MatToolbarModule } from '@angular/material';
import { FuseSharedModule } from '@fuse/shared.module';
2017-08-17 07:40:25 +00:00
import { ChatService } from './chat.service';
import { FuseChatComponent } from './chat.component';
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({
declarations: [
2017-08-18 11:50:19 +00:00
FuseChatComponent,
FuseChatViewComponent,
FuseChatStartComponent,
FuseChatChatsSidenavComponent,
FuseChatUserSidenavComponent,
FuseChatLeftSidenavComponent,
FuseChatRightSidenavComponent,
FuseChatContactSidenavComponent
],
imports : [
RouterModule.forChild(routes),
MatButtonModule,
MatCardModule,
MatFormFieldModule,
MatIconModule,
MatInputModule,
MatListModule,
MatMenuModule,
MatRadioModule,
MatSidenavModule,
MatToolbarModule,
FuseSharedModule
],
providers : [
ChatService
]
})
export class FuseChatModule
{
}