app.module.ts 1.21 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';
Rron Jahja's avatar
Rron Jahja committed
13

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

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