JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="myApp" ng-controller="myCtrl as mv">
    <form name="mv.form">
        <input ng-model="mv.text"><br>
        <a href="#" ng-show="mv.form.$dirty" ng-click="mv.reset()">reset</a>
    </form>
</div>

JavaScript

angular.module('myApp', []).controller('myCtrl', function () {
    var mv = this;
    mv.reset = function () {
        mv.text='';
        mv.form.$setPristine();
    }
});