UNPKG

increments

Version:

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

33 lines (30 loc) 869 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 '../environments/environment'; const config: SocketIoConfig = { url: environment.socket, options: { rejectUnauthorized: false, secure: environment.secure_socket } }; @NgModule({ declarations: [ AppComponent, VoteComponent, ], imports: [ BrowserModule, FormsModule, HttpModule, SocketIoModule.forRoot(config) ], bootstrap: [AppComponent] }) export class AppModule { }