When I submit my login form and redirect to another page after successful authentication, I get a pop up saying that I have unsaved changes. I believe this pop up should only show if you redirect to another page without saving your changes to a form.
I have tried calling the the $setPrestine()
and $setUntouched()
functions of the form and setting the model to null but the pop up still shows.
How do I properly handle this? Thanks
UPDATE
I found out that the issue is caused by an angular module (angular-agility) that is used in the project I'm working on. I have found the solution after doing a lot of tracing.