Install ng-clear-button via Bower:
bower install ng-clear-button --production
Include main files:
<link rel="stylesheet" href="bower_components/ng-clear-button/dist/ng-clear-button.min.css">
<script src="bower_components/ng-clear-button/dist/ng-clear-button.min.js"></script>
Include angularClearButton
module as a dependency into your app:
angular
.module('yourApp', [
'angularClearButton'
]);
Place with-clear-button
attribute into your HTML input element:
<input type="search" with-clear-button />
<!-- with optional attributes:
clear-button-html="<img src=\"custom-button.png\" />"
clear-button-is-visible
-->
See the instructions at ng-pack.
MIT http://tameraydin.mit-license.org/
- Add more unit tests