Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (31 sloc) 988 Bytes
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { SocketIoModule, SocketIoConfig } from 'ngx-socket-io';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { RegisterPlayerComponent } from './register-player/register-player.component';
import { GameComponent } from './game/game.component';
const config: SocketIoConfig = {
url: 'http://localhost:4444'
};
@NgModule({
declarations: [
AppComponent,
DashboardComponent,
RegisterPlayerComponent,
GameComponent
],
imports: [
BrowserModule,
HttpClientModule,
AppRoutingModule,
SocketIoModule.forRoot(config),
FormsModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
You can’t perform that action at this time.