-
Notifications
You must be signed in to change notification settings - Fork 175
/
chat.module.ts
30 lines (26 loc) · 1007 Bytes
/
chat.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FlexLayoutModule } from '@angular/flex-layout';
import { MaterialModule } from '@angular/material';
import { RoutingModule } from './chat.routes';
import { ChatService } from './chat.service';
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
import { InMemoryUserDbService } from './data/user';
import { ChatComponent } from './chat.component';
import { UserComponent } from './user/user.component';
import { ContactsComponent } from './contacts/contacts.component';
import { ChatsComponent } from './chats/chats.component';
@NgModule({
imports: [
CommonModule,
FlexLayoutModule,
MaterialModule.forRoot(),
RoutingModule,
InMemoryWebApiModule.forRoot(InMemoryUserDbService)
],
providers: [
{ provide: 'ChatService', useClass: ChatService }
],
declarations: [ChatComponent, UserComponent, ContactsComponent, ChatsComponent]
})
export class ChatModule { }