UNPKG

increments

Version:

Create polls and manage votes with a MongoDB or MySQL database.

29 lines (25 loc) 784 B
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { CookieService } from 'ng2-cookies'; import { AppComponent } from './app.component'; import { VoteComponent } from './vote/vote.component'; import { SocketIoModule, SocketIoConfig, Socket} from 'ng-socket-io'; import { environment } from '../environment'; const config: SocketIoConfig = { url: environment.socket }; @NgModule({ declarations: [ AppComponent, VoteComponent, ], imports: [ BrowserModule, FormsModule, HttpModule, SocketIoModule.forRoot(config) ], providers: [CookieService], bootstrap: [AppComponent] }) export class AppModule { }