You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is missing or inaccurate about the content on this page?
The doc says that as a workaround for the removed dismissOnPageChange, there are global events (ionNavWillChange, ionNavDidChange) that you can listen to in order to detect when navigation occurs.
I can't find any documentation anywhere on how to actually use ionNavDidChange, so this is not a great proposed alternative.
I managed to get it working using this code in app.component.ts to subscribe to Angular router events:
router.events.subscribe(event => {
if (event instanceof NavigationEnd) {
// Do something
}
});
Perhaps this should be documented as an alternative to dismissOnPageChange.
The text was updated successfully, but these errors were encountered:
URL
https://github.com/ionic-team/ionic/blob/master/angular/BREAKING.md#overlays
What is missing or inaccurate about the content on this page?
The doc says that as a workaround for the removed dismissOnPageChange,
there are global events (ionNavWillChange, ionNavDidChange) that you can listen to in order to detect when navigation occurs.
I can't find any documentation anywhere on how to actually use ionNavDidChange, so this is not a great proposed alternative.
I managed to get it working using this code in app.component.ts to subscribe to Angular router events:
Perhaps this should be documented as an alternative to dismissOnPageChange.
The text was updated successfully, but these errors were encountered: