angular-placeholder-fallback

Directive to support the placeholder attribute on old browsers. No jQuery required.

Added by: Sam Deering

GitHub

Repository

crisbeto/angular-placeholder-fallback

Stats

Stars: 2

Watchers: 2

Forks: 1

Module Description

Angular placeholder fallback

Directive to support the placeholder attribute on old browsers. No jQuery required.

Demo

Install

  • Include Angular and placeholder.js or placeholder.min.js in your page.
  • Add angular-placeholder-fallback as a dependency
angular.module('someModule', ['angular-placeholder-fallback'])

Styling

 .placeholder{
    color:#aaa;
 }

Features

  • Doesn't require any external dependencies(except Angular doh)
  • Does nothing if the browser supports placeholders
  • Placeholder value doesn't get submitted in a form

Module stats last updated: 2015-06-08 00:28:41

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!