mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-11 04:55:07 +00:00
65 lines
2.0 KiB
TypeScript
65 lines
2.0 KiB
TypeScript
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';
|
|
|
|
import { ChatService } from 'app/main/apps/chat/chat.service';
|
|
import { ChatComponent } from 'app/main/apps/chat/chat.component';
|
|
import { ChatStartComponent } from 'app/main/apps/chat/chat-start/chat-start.component';
|
|
import { ChatViewComponent } from 'app/main/apps/chat/chat-view/chat-view.component';
|
|
import { ChatChatsSidenavComponent } from 'app/main/apps/chat/sidenavs/left/chats/chats.component';
|
|
import { ChatUserSidenavComponent } from 'app/main/apps/chat/sidenavs/left/user/user.component';
|
|
import { ChatLeftSidenavComponent } from 'app/main/apps/chat/sidenavs/left/left.component';
|
|
import { ChatRightSidenavComponent } from 'app/main/apps/chat/sidenavs/right/right.component';
|
|
import { ChatContactSidenavComponent } from 'app/main/apps/chat/sidenavs/right/contact/contact.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '**',
|
|
component: ChatComponent,
|
|
children: [],
|
|
resolve: {
|
|
chat: ChatService
|
|
}
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
ChatComponent,
|
|
ChatViewComponent,
|
|
ChatStartComponent,
|
|
ChatChatsSidenavComponent,
|
|
ChatUserSidenavComponent,
|
|
ChatLeftSidenavComponent,
|
|
ChatRightSidenavComponent,
|
|
ChatContactSidenavComponent
|
|
],
|
|
imports : [
|
|
RouterModule.forChild(routes),
|
|
|
|
MatButtonModule,
|
|
MatCardModule,
|
|
MatFormFieldModule,
|
|
MatIconModule,
|
|
MatInputModule,
|
|
MatListModule,
|
|
MatMenuModule,
|
|
MatRadioModule,
|
|
MatSidenavModule,
|
|
MatToolbarModule,
|
|
|
|
FuseSharedModule
|
|
],
|
|
providers : [
|
|
ChatService
|
|
]
|
|
})
|
|
export class ChatModule
|
|
{
|
|
}
|