diff options
| author | Kumar Priyansh <[email protected]> | 2018-09-09 08:19:27 +0530 |
|---|---|---|
| committer | Kumar Priyansh <[email protected]> | 2018-09-09 08:19:27 +0530 |
| commit | 5ef465dab66d20100630bba6a42f47c243aa476a (patch) | |
| tree | d95a1f961888d451733c947e42e56f49271f04be /src/app/app.component.ts | |
| download | NewsApp-5ef465dab66d20100630bba6a42f47c243aa476a.tar.xz NewsApp-5ef465dab66d20100630bba6a42f47c243aa476a.zip | |
Files Upload via GIT
Diffstat (limited to 'src/app/app.component.ts')
| -rw-r--r-- | src/app/app.component.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/app/app.component.ts b/src/app/app.component.ts new file mode 100644 index 0000000..a28e8d2 --- /dev/null +++ b/src/app/app.component.ts @@ -0,0 +1,22 @@ +import { Component } from '@angular/core'; +import { Platform } from 'ionic-angular'; +import { StatusBar } from '@ionic-native/status-bar'; +import { SplashScreen } from '@ionic-native/splash-screen'; + +import { TabsPage } from '../pages/tabs/tabs'; + +@Component({ + templateUrl: 'app.html' +}) +export class MyApp { + rootPage:any = TabsPage; + + constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) { + platform.ready().then(() => { + // Okay, so the platform is ready and our plugins are available. + // Here you can do any higher level native things you might need. + statusBar.styleDefault(); + splashScreen.hide(); + }); + } +} |
