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