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="url" ng-model="myform.bar" />
        <input type="button" value="Reset" ng-click="reset()"/>
        <pre>{{ myform | json }}</pre>
    </form>
</div>

CSS

input.ng-dirty {
    border-color: red;
}

JavaScript

function CTRL ($scope) {
    $scope.reset = function() {
       $scope.myform = {};
       $scope.formName.$setPristine();
    };
}