0
私はapp.component.tsで次のコードを使用しています。しかし、それはすべてのページに反映されます。それを達成する方法?
import { StatusBar } from '@ionic-native/status-bar';
constructor(private statusBar:StatusBar){
this.platform.ready().then(() => {
this.statusBar.backgroundColorByHexString('#ff6d79');
this.splashScreen.hide();
});
}
しかし、それはコードを増やします。共通のコンポーネントでそれを実現する別の方法はありますか? – Sakthivel
はい、ルートNavControllerイベントを購読してそこに設定することができます。 – JoeriShoeby