cvn / angular-shims-placeholder

Angular directive to emulate the placeholder attribute on text and password input fields for old browsers, such as IE9, IE8, and IE7. Also works on textareas and html5 input types.
MIT License
63 stars 26 forks source link

Service and directive need bracket notation for minification support #15

Closed tdakhla closed 9 years ago

tdakhla commented 9 years ago

This lib doesn't work when minified - it needs bracket notation as such:

.service('placeholderSniffer', ['$document', function ($document) {
.directive('placeholder', ['$timeout', '$document', 'placeholderSniffer', function ($timeout, $document, placeholderSniffer) {
tdakhla commented 9 years ago

Just realized I was using the non-dist version - sorry about that!

cvn commented 9 years ago

no problem :)