Simple and easy-to-implement angular clear input directive.
http://plnkr.co/edit/duzoxcsga6wFen9KP1fM?p=preview
- Latest jQuery
- AngularJS 1.3+
<div class="form-group">
<label>Name:</label>
<input type="text" class="form-control" placeholder="Type text in here" ng-model="name" clear-input>
</div>