2020-08-11 04:11:42 +01:00
|
|
|
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
2020-08-05 15:39:16 +01:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
|
import { RouteReuseStrategy } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
|
|
|
|
|
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
|
|
|
|
|
import { StatusBar } from '@ionic-native/status-bar/ngx';
|
|
|
|
|
|
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
|
|
|
|
2020-08-25 14:08:13 +01:00
|
|
|
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
|
|
|
|
|
2020-09-10 09:48:37 +01:00
|
|
|
import { SocketIoModule, SocketIoConfig } from 'ngx-socket-io';
|
|
|
|
|
const config: SocketIoConfig = { url: 'http://localhost:3001', options: {} };
|
|
|
|
|
|
2020-08-05 15:39:16 +01:00
|
|
|
@NgModule({
|
|
|
|
|
declarations: [AppComponent],
|
|
|
|
|
entryComponents: [],
|
2020-12-02 16:20:20 +01:00
|
|
|
imports: [BrowserModule,
|
|
|
|
|
IonicModule.forRoot(),
|
|
|
|
|
AppRoutingModule,
|
|
|
|
|
HttpClientModule,
|
|
|
|
|
SocketIoModule.forRoot(config)],
|
2020-08-05 15:39:16 +01:00
|
|
|
providers: [
|
|
|
|
|
StatusBar,
|
|
|
|
|
SplashScreen,
|
|
|
|
|
HttpClientModule,
|
2020-08-25 14:08:13 +01:00
|
|
|
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
|
2020-08-26 09:42:16 +01:00
|
|
|
InAppBrowser,
|
2020-08-05 15:39:16 +01:00
|
|
|
],
|
2020-08-11 04:11:42 +01:00
|
|
|
bootstrap: [AppComponent],
|
|
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
2020-08-05 15:39:16 +01:00
|
|
|
})
|
|
|
|
|
export class AppModule {}
|