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