I have migrated from @ionic/angular 4.4.0 to @ionic/angular 4.8.1
After the update my pages cant discover screen rotate with *ngIf
The above statements works fine with 4.4.0 and the screen rotate is discovered.
In the new version 4.8.1 this only works the first time the page loads, but never when the screen rotates.
I have tried the ScreenOrientation plugin and updated a variable on the page that i test against in the HTML , but *ngIf wont update the page when the value is changed.
I can write to the colsole log when the rotate happens and I can see that my variable has been updated, but *ngIf wont recognize the change .
This was not any problem with the 4.4 version of the @ionic/angular framework.
If change detection does not seem to work in a template but somehow does work in the code then my experience is that there something else wrong with the template giving the angular engine a hard time
Have u tried the mechanism in a new simple app to see if the mechanism works?
Wrapping in a zone may be something for some plugins
I have added some source code to illustrate the problem bellow. When updating the variable isLandscape nothing happens, but after adding a dummy method that just prints the variable isLandscape to the console log, then the change in isLandscape is discovered in HTML
In earlier versions of ionic this would work fine.
I have solved the problem with NgZone for now.
When I wrap the update of the variable that holds information about the screen orientation inside ngzone then *ngIf is able to discover changes.