Suppose I've 2 controllers - C1
and C2
. I do a navigator.pushPage
from v1.html
to v2.html
. And then I do a navigator.popPage
on v2.html
. But the popPage
doesn't reload the controller C1
. I'm trying to figure out a way to reload the controller, but have not been able to do that. I tried with popPage({refresh:true})
also, but that didn't help either. Here's the codepen: http://codepen.io/rohit_jain/pen/eNbyEm.
Is there any way I can achieve what I want?
Here's the real example:
On v1.html
, I'm displaying the Cart
details - total_cart_items
or total_price
. There I've a button to move to v2.html
, where I display Cart
contents. On v2.html
, the person can reset the cart, and then go back to page v1.html
. Now, I want the reset cart action to change total_cart_items
and total_price
on v1.html
. But that's not happening.