we have a little problem using the cordova-browser build of ionic 3.
Long story short: If you come back to an already visited Ionic page using the browser back button and interact with that page, the view does not get updated properly (until you do something like browser window resizing).
I set up a small project, based on the blank project that can be created with the Ionic CLI. You can find it here: https://github.com/christophenne/ionic3-ngIf-problem
npm install and then
ionic cordova run browser (you can also run it with the dev server via
ionic serve, to verify that everything is fine there).
The basic problem is, that when you go to a page (in the example “page2”) with the NavController push method, and then you go back to the previous page (“home”) via the Browser Back Button, the view does not get updated properly.
Simply click one of the two Select-Buttons (after you came back to “home” via browser-back), and you will see that nothing changes. However, the click-Method is called, as you can see in the Browser console.
Also, as soon as you do something that forces the view to refresh (like resizing the browser window), it finally gets updated.
It’s important for us to have the browser-back, since we don’t use the Ionic-Back-Button and we also want to deploy it as a web app.
It doesn’t work with either ionic 3.4, 3.5 or 3.6. I didn’t try anything lower than that.
global packages: @ionic/cli-utils : 1.4.0 Cordova CLI : 6.5.0 Ionic CLI : 3.4.0 local packages: @ionic/app-scripts : 2.1.3 Cordova Platforms : browser 4.1.0 Ionic Framework : ionic-angular 3.6.0 System: Node : v6.11.0 OS : Linux 3.13 Xcode : not installed ios-deploy : not installed ios-sim : not installed npm : 3.10.10
Is there a way to fix this or to work around it ? Thanks in advance.