I have a form on a page that is linked from my menu using a normal anchor tag.
Now if that menu item is clicked again when I'm already on that page, I want to check for unsaved changes and either show a modal to ask if you really want to reload, if there are unsaved changes, or just reset the page, if there are none.
How would I go to do this in AngularJS? Preferably I would like to keep the menu item a normal anchor tag.