JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app>
<form ng-submit="submitAction()" ng-controller="CTRL">
<input type="text" ng-model="myform.foo" />
<input type="text" ng-model="myform.bar" />
<input type="reset" value="Reset" />
<pre>{{ myform | json }}</pre>
</form>
</div>
CSS
input.ng-dirty {
border-color: red;
}
JavaScript
function CTRL ($scope) {
}