Вы можете решить эту проблему с помощью директивы ng-model, вот пример того, как вы можете реализовать ее в своем коде
index. html
<div ng-controller="MainController">
<p>Clear the input field when you click on the button:</p>
<button ng-click="clearInput()">Clear input field</button>
<input type="text" id="myInput" ng-model="input">
</div>
app. js
var myApp = angular.module('myApp',[]);
myApp.controller('MainController', ['$scope', function($scope) {
$scope.input = '';
$scope.clearInput = function() {
$scope.input = '';
}
}]);
Дополнительные примеры см. В документации angularjs. https://docs.angularjs.org/guide/controller