angular-clear-button is a directive for AngularJS to make ios style clear button for angular js
Check out the running demos http://htmlpreview.github.io/?https://raw.githubusercontent.com/tushariscoolster/angular-clear-button/master/demo/index.html.
angular-clear-button
- Download angular-clear-button from https://github.com/tushariscoolster/angular-clear-button or install it with:
- Bower via
bower install angular-clear-button
- Include the script tag on your page after the AngularJS
- 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>