app.module.ts 1.52 KB
Newer Older
1
// ionic native dependencies
Rron Jahja's avatar
Rron Jahja committed
2
3
4
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
5
import { HttpClientModule } from '@angular/common/http';
Rron Jahja's avatar
Rron Jahja committed
6

7
// ionic native dependencies
Rron Jahja's avatar
Rron Jahja committed
8
9
10
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
11
12
import { Geolocation } from '@ionic-native/geolocation/ngx';
import { IonicStorageModule } from '@ionic/storage';
13
import { NativeGeocoder, NativeGeocoderOptions } from '@ionic-native/native-geocoder/ngx';
14
// custom dependencies
Rron Jahja's avatar
Rron Jahja committed
15
16
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
17
import { RestService } from './rest.service';
18
import { ToastService } from './services/toast.service';
19
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
20
import { HereMapComponent } from './components/here-map/here-map.component';
21

Rron Jahja's avatar
Rron Jahja committed
22
23
24
25
26
@NgModule({
  declarations: [AppComponent],
  entryComponents: [],
  imports: [
    BrowserModule,
27
    HttpClientModule,
Rron Jahja's avatar
Rron Jahja committed
28
    IonicModule.forRoot(),
29
    AppRoutingModule,
30
31
    FormsModule,
    ReactiveFormsModule,
32
    IonicStorageModule.forRoot()
Rron Jahja's avatar
Rron Jahja committed
33
34
  ],
  providers: [
Rron Jahja's avatar
Rron Jahja committed
35
    Geolocation,
Rron Jahja's avatar
Rron Jahja committed
36
37
    StatusBar,
    SplashScreen,
38
    RestService,
39
    NativeGeocoder,
40
    ToastService,
41
    HereMapComponent,
Rron Jahja's avatar
Rron Jahja committed
42
43
44
45
46
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}