angular - markAsPristine whenever changes are manually reset -
i have route guard can deactivate checks if page $dirty determine whether or not bring prompt telling user leave page. 1 problem i've noticed if user makes change page , undoes change page original state, page still considered dirty. results in route guard being prompted if try leave page still.
is there possible way in angularjs have dirty automatically reset pristine if changes reset manually in page? i'm aware of $markaspristine don't know of way consistently check page scenario , call it.
Comments
Post a Comment