| 1234567891011121314151617181920212223 |
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
-
- import { AppRoutingModule } from './app-routing.module';
- import { AppComponent } from './app.component';
-
- import { SocketIoModule, SocketIoConfig } from 'ngx-socket-io';
- const config: SocketIoConfig = { url: 'http://localhost:5000', options: {} };
-
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- AppRoutingModule,
- SocketIoModule.forRoot(config)
- ],
- providers: [
- ],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
|