my-chat-room/apps/chat-room/src/app/app.module.ts

26 lines
617 B
TypeScript
Raw Normal View History

2020-10-09 16:21:21 +00:00
import { HttpClientModule } from '@angular/common/http';
2020-10-09 13:32:53 +00:00
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
2020-10-09 16:21:21 +00:00
import { SocketIoModule, SocketIoConfig } from 'ngx-socket-io';
2020-10-09 13:32:53 +00:00
import { AppComponent } from './app.component';
2020-10-09 16:21:21 +00:00
import { FormsModule } from '@angular/forms';
const config: SocketIoConfig = {
url: ':4001',
options: {},
};
2020-10-09 13:32:53 +00:00
@NgModule({
declarations: [AppComponent],
2020-10-09 16:21:21 +00:00
imports: [
BrowserModule,
HttpClientModule,
FormsModule,
SocketIoModule.forRoot(config),
],
2020-10-09 13:32:53 +00:00
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}