when I upload a new photo to my App, I want the user to move to the photos Page (in case if the user already opened it before, all old photos are loaded), and to refresh the cached view so that the new photo is downloaded. I’m trying to do this via but it doesn’t work. I don’t want to use pop() because then the pages start to jump. Any advice on how to do this, will be greatly appreciated!
This is not an idiomatic way of thinking in an Angular app. You should not concern yourself with refreshing views. Templates display things in response to bound values of properties in their associated controller. Update the property in the controller and the template will automatically do what is desired.
Sure, here is the code. I’ve tried to also call this method from the controller (doesn’t refresh the view) and from ionViewWillEnter (same, doesn’t refersh the view). Many thanks!
If I am reading this correctly, there are N <ion-slides> elements, each containing one <ion-slide>. That seems strange. I thought generally one has one <ion-slides> element containing N <ion-slide> elements.
Aside from that, I don’t see how any of these properties that hang off of load that determine what is shown when are being set.
Please post something minimal and complete that people can use to reproduce the situation. Very frequently people post things that oversimplify to the extent that the underlying issue is not reproducible given the provided information.
I actually don’t have a solution for this yet. The way I’m temporarily solving this is by passing a check variable set to TRUE, which displays a button (via the hidden attribute) which says “you have new photos, click here to refresh view”.