For instance, I want to inspect the HTTP response to determine if form was successfully saved. In case of error, I don't want to loose data if user simply navigates away.
I believe there should be an option to allow programmers decide to call $setPristine themselves.
For instance, I want to inspect the HTTP response to determine if form was successfully saved. In case of error, I don't want to loose data if user simply navigates away.
I believe there should be an option to allow programmers decide to call $setPristine themselves.
Source: https://github.com/facultymatt/angular-unsavedChanges/blob/develop/src/unsavedChanges.js#L268