Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Previous Page Not Hiding After Pop in Ionic 3

$
0
0

@junjunhernandez wrote:

I am using Ionic 3.
I used this.navCtrl.pop() but nothing happens.
I tried

let 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

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>