10. Create a generic canDeactivate Guard in Angular
ฝัง
- เผยแพร่เมื่อ 7 ก.พ. 2025
- In this video, we will see how to protect a user from leaving a page that has unsaved changes. We will warn the user of the unsaved changes if tries to change the page without first submitting the #form.
We will use #angular reactive forms for the example and we will make use of the #routing feature which is the Deactivate Guard
#angular #form #reactiveform #tutorial #routing
what extinction are you using to generate a guard can you pleas mention