Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 468 Bytes

File metadata and controls

23 lines (13 loc) · 468 Bytes

angular-clearinput

Simple and easy-to-implement angular clear input directive.

Demo

http://plnkr.co/edit/duzoxcsga6wFen9KP1fM?p=preview

Requirements

  • Latest jQuery
  • AngularJS 1.3+

Markup

<div class="form-group">
  <label>Name:</label>
  <input type="text" class="form-control" placeholder="Type text in here" ng-model="name" clear-input>
</div>