$dirty and $pristine states in AngularJS forms
AngularJS provides built-in form validation states that help track user interactions with form fields. Among these, $dirty and $pristine are two important properties used to determine whether a form or….