Laten we dit eens lekker standalone proberen te maken
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.module.ts 575B

1234567891011121314151617181920212223
  1. import { BrowserModule } from '@angular/platform-browser';
  2. import { NgModule } from '@angular/core';
  3. import { AppRoutingModule } from './app-routing.module';
  4. import { AppComponent } from './app.component';
  5. import { SocketIoModule, SocketIoConfig } from 'ngx-socket-io';
  6. const config: SocketIoConfig = { url: 'http://localhost:5000', options: {} };
  7. @NgModule({
  8. declarations: [
  9. AppComponent
  10. ],
  11. imports: [
  12. BrowserModule,
  13. AppRoutingModule,
  14. SocketIoModule.forRoot(config)
  15. ],
  16. providers: [
  17. ],
  18. bootstrap: [AppComponent]
  19. })
  20. export class AppModule { }