app.module.ts 1.25 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
18
import { RestService } from './rest.service';

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