tests-always-included / angular-placeholder Goto Github PK
View Code? Open in Web Editor NEWDirective that simplifies styling and shims in input placeholder functionality for dumber browsers.
License: Other
Directive that simplifies styling and shims in input placeholder functionality for dumber browsers.
License: Other
In IE9, on the demo page, follow these steps:
If you click out of the field, this doesn't happen.
.
It would be good if multiline placeholder was supported for textarea with \n or something
Great plug-in. I tried quite a few angular placeholder shims and encountered various problems with each, but yours fit my needs exactly. One request, though: the latest release in the bower registry is a bit out of date.
Could you please release the latest version? I would prefer not to reference the current version by git sha.
Regards,
---Tim---
Hello
can you publish version 1.0.3 on npm ?
I don't know what I'm doing wrong. Any helpful tips would be appreciated. This code used to reach out to Sauce Labs before and now it does not.
Any text added to the input is also treated as a placeholder (is removed when refocused).
It would be interresting that the angular modules export its name for easy use in webpack.
I would be as simple as creating a index.js file with
require('./lib/tai-placeholder');
module.exports = 'taiPlaceholder';
and use this as main in package.json
The difference is the usage of module.exports with the name of the ng module.
See for example what the angular-animate package looks like.
In 1.3 I'd expect a required error key to be set when the input initially loads, both when using required and ng-required. Only when you type in a character and remove it will the required error key be set:
http://jsfiddle.net/eL55yebe/1/
In 1.2, using required works fine, but ng-required doesn't set the required error key:
http://jsfiddle.net/at4jkx46/
Note: in all cases, removing the placeholder directive allows the required error key to be set on load.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.