angular - Push page from out of app (NavController) -


i created app push notification , want when opened notification pushed page in nav stack:

  this.onesignal.handlenotificationopened().subscribe((data) => {       this.nav.push(componentparent , {some key/value});   }); 

everything ok , page pushed well, use componentchild in componentparent handled variable , after push, not working!

childcomponent (template) :

  <div *ngif='!load' >    //show loading   </div> 

childcomponent (ts) :

  export class loadingpage {        @input() load: boolean = false;        constructor() {}   } 

parentcomponent (template) :

 <loading [load]="load">  </loading>  //some other html tag 

parentcomponent (ts) :

export class idpage {     load:boolean = false;    constructor(){       this.load = true;    }  } 

more details: actually, when push parentcomponent, loader not disappear, if minimize app , again it, loading disappear!


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -