Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 622 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 622 Bytes

angularjs-placeholder.js

AngularJs directive pollyfill for html5 placeholder without jQuery dependency. Inspired from https://gist.github.com/veeracs/5770791.

Requires

  1. Angularjs - obviously!
  2. Modernizr.js with placeholder support detection (Get your custom build here http://modernizr.com/download/#-input-inputtypes-forms_placeholder)

Installation

  1. Download the angularjs-placeholder-polyfill.js file.
  2. Include it in your site.
  3. Include Modernizr in your site.
  4. Install customPlaceholder module in your angular app.