Skip to content

An AngularJS directive for adding a clear button inside an input element.

License

Notifications You must be signed in to change notification settings

miguelmota/angular-clearable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AngularJS Clearable Directive

An AngularJS directive for adding a clear button inside an input element.

How to use angular-clearable

Just include angular-clearable.js after angularjs (jQuery is not required). Then you will need to make sure you require xngClearable in your app module. That's it!

Using the xng-clearable directive is pretty simple:

<input type="text" ng-model="test" xng-clearable />

Limitations

Actually only input with type="text" are supported.

Bower

You can install angular-clearable using Bower:

bower install angular-clearable

License.

This code is licensed under The MIT License (MIT).

Credit

Original Author: Giacomo Antolini (aka Flocca)

About

An AngularJS directive for adding a clear button inside an input element.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 100.0%