Advertisement
Guest User

app.modules.ts

a guest
Apr 28th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { BrowserModule } from '@angular/platform-browser';
  2. import { ErrorHandler, NgModule } from '@angular/core';
  3. import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
  4. import { SplashScreen } from '@ionic-native/splash-screen';
  5. import { StatusBar } from '@ionic-native/status-bar';
  6.  
  7. import { MyApp } from './app.component';
  8. import { HomePage } from '../pages/home/home';
  9.  
  10. import  { MediaPlugin } from '@ionic-native/media';
  11.  
  12. @NgModule({
  13.   declarations: [
  14.     MyApp,
  15.     HomePage
  16.   ],
  17.   imports: [
  18.     BrowserModule,
  19.     IonicModule.forRoot(MyApp)
  20.   ],
  21.   bootstrap: [IonicApp],
  22.   entryComponents: [
  23.     MyApp,
  24.     HomePage
  25.   ],
  26.   providers: [
  27.     StatusBar,
  28.     SplashScreen,
  29.     {provide: ErrorHandler, useClass: IonicErrorHandler},
  30.     {provide: MediaPlugin, useClass: HomePage}
  31.   ]
  32. })
  33. export class AppModule {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement