JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="myApp">
<div ng-controller="formCtrl">
<form name="resetme" id="resetme">
<input type="text" />
<input type="file" />
<button type="button" ng-click="resetForm()">reset</button>
</form>
</div>
</div>
JavaScript
var app=angular.module('myApp', [])
.controller('formCtrl', function($scope) {
$scope.resetForm = function() {
//$scope.resetme.reset();
document.getElementById('resetme').reset();
};
});