Closed
Description
Please provide a way of allowing the coder to prevent a page navigation.
This could be via an event in NavigationManager, or the current component implementing a new ICanDeactivateComponent type of interface - preferably both.
@SteveSandersonMS requested an example app from another APS framework that allows code to prevent the user navigating away from the current page when clicking Back on the browser history.
- Download https://github.com/mrpmorris/candeactivate-angular
- run
ng serve
- Click the
Contact
link
Click the browser's history back button