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

Nav getPrevious() works on livereload, fails without it

$
0
0

@obinnae wrote:

Hello,
In my app, a user can go to the profile page from different pages (homepage, settings, etc). When he goes to the profile page to update his profile and saves it, I want to return to the origin page it came from (home page, whatever). I don’t want to use navctrl.pop() because I need to reload the origin page. I used the following…

this.navCtrl.setRoot(this.navCtrl.getPrevious().name)

It works fine when debugging on the device with livereload, but when I debug without livereload, or when I install the apk on the device, it doesn’t work (doesn’t advance to the origin page).

Any suggestions? Or a better way of going to the origin page after saving?

Thanks.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70439

Trending Articles



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