Skip to content

gangadharjannu/clear-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clear-icon

An AngularJS directive for clearing HTML inputs using clear icon without any external dependencies.

Feature list:

  • clears HTML input.
  • validation friendly (resets input to default state).
  • No external dependencies (pure Angular).

How to guide

  • Manual method
    • Download clear-icon directive from GitHub
  • Using Bower
    • bower install clear-icon
  • Include it in your main page (Usually it should be index.html)
  • Add clearIconModule as a dependency in your main module.
  • Example: If your app name is 'myApp' you can add clearIconModule as a dependency like below
angular.module('myApp',['clearIconModule']);	

And here's some code! :

<body ng-app="myApp">
	<input type="text" ng-model="test" clear-icon>
</body>

Demo

demo

About

angular clear icon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages