Skip to content

jimmyhillis/angular-placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-placeholder

HTML5 placeholder polyfill for AngularJS.

This angular directive allows for the use of HTML5 placeholder functionality across all browsers, including legacy versions of Internet Explorer.

Usage

Include the angular-placeholder.min.js file within your project (don't forget to add the ngPlaceholder DI to your app) and use the directive like:

<input type="text" ng-placeholder placeholder="This is placeholder text" />

This will ensure the ng-placeholder text value works across all browsers, using the HTML5 functionality where possible. You may also use the following format:

<input type="text" ng-placeholder="This is placeholder text" />

License

This code is licensed under MIT and can be used as required.

About

HTML5 placeholder polyfill in vanilla angular.

Resources

License

Stars

Watchers

Forks

Packages

No packages published