@junjunhernandez wrote:
I am using Ionic 3.
I used this.navCtrl.pop() but nothing happens.
I triedlet currentIndex = this.navCtrl.getActive().index; this.navCtrl.push('HomePage').then(() => { this.navCtrl.remove(currentIndex); });
I also tried
let currentIndex = this.viewCtrl.index; this.navCtrl.push('HomePage').then(() => { this.navCtrl.remove(currentIndex); });
Both the above codes seem to pop but it doesn’t hide the page, because I tried clicking randomly on the whole screen and the buttons were actually clicked. Those buttons that were clicked are on the root page which is behind the page that should be hidden.
Anyone? TIA.
Posts: 1
Participants: 1