Skip to content

Latest commit

 

History

History
33 lines (16 loc) · 1.04 KB

File metadata and controls

33 lines (16 loc) · 1.04 KB

angular-clear-button is a directive for AngularJS to make ios style clear button for angular js

Demos

Check out the running demos http://htmlpreview.github.io/?https://raw.githubusercontent.com/tushariscoolster/angular-clear-button/master/demo/index.html.

angular-clear-button

Getting Started

<script type='text/javascript' src='path/to/angular.min.js'></script> <script type='text/javascript' src='path/to/angular-clear-button.js'></script>
  • Ensure that your application module specifies angular-clear-button as a dependency:

angular.module('myApplication', ['angular-clear-button']);

  • Use the directive by specifying an clear-btn attribute on an element.

<input type="text" clear-btn ng-model="userInfoData.first_name" class="form-control" required>