fix
This commit is contained in:
@@ -3,6 +3,7 @@ import { Component } from '@angular/core';
|
|||||||
import { Platform } from '@ionic/angular';
|
import { Platform } from '@ionic/angular';
|
||||||
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
|
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
|
||||||
import { StatusBar } from '@ionic-native/status-bar/ngx';
|
import { StatusBar } from '@ionic-native/status-bar/ngx';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
@@ -13,7 +14,8 @@ export class AppComponent {
|
|||||||
constructor(
|
constructor(
|
||||||
private platform: Platform,
|
private platform: Platform,
|
||||||
private splashScreen: SplashScreen,
|
private splashScreen: SplashScreen,
|
||||||
private statusBar: StatusBar
|
private statusBar: StatusBar,
|
||||||
|
private router: Router
|
||||||
) {
|
) {
|
||||||
this.initializeApp();
|
this.initializeApp();
|
||||||
}
|
}
|
||||||
@@ -22,6 +24,9 @@ export class AppComponent {
|
|||||||
this.platform.ready().then(() => {
|
this.platform.ready().then(() => {
|
||||||
this.statusBar.styleDefault();
|
this.statusBar.styleDefault();
|
||||||
this.splashScreen.hide();
|
this.splashScreen.hide();
|
||||||
|
|
||||||
|
this.router.navigateByUrl('start');
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,5 +5,9 @@
|
|||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
|
<ion-button color="primary">Primary</ion-button>
|
||||||
|
<ion-button color="secondary">Secondary</ion-button>
|
||||||
|
<ion-button color="tertiary">Tertiary</ion-button>
|
||||||
|
<ion-button color="success">Success</ion-button>
|
||||||
|
<ion-button color="warning">Warning</ion-button>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
Reference in New Issue
Block a user