DEV Community

Discussion on: Warn User Of Unsaved Changes to Angular Form

Collapse
 
nightwolfdev profile image
nightwolfdev

If the user closes the modal by mistake, you could listen for that modal close event and if the form is considered dirty, warn the user at that moment.