
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
angular-shims-placeholder
Advanced tools
Angular directive to emulate the `placeholder` attribute on text and password input fields for old browsers, such as IE9, IE8, and below
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.
This directive works in both directions, which means that changing the value from inside the model is honoured in the form.
In comparison to https://github.com/urish/angular-placeholder-shim, this Angular directive is implementend purely on the AngularJS API and does not depend on other libraries, such as jQuery and jquery-html5-placeholder-shim.
Include
<script src="angular-shims-placeholder.min.js"></script>
into your application.
Add the module as a dependency to your application module:
angular.module('MyAwesomeApp', [/* other dependencies */, 'ng.shims.placeholder']);
That's it. Now, text fields having an attribute placeholder
behave almost as native
placeholder fields, even on IE8 and below.
Example:
<input type="text" name="email" placeholder="Enter your email" />
The class empty
is added when the input is empty and the placeholder is
showing. Make it look like a placeholder e.g. .empty { color: #a9a9a9; }
If you modify a shimmed input from outside of Angular, trigger the 'change'
event to update the placeholder display e.g. elem.triggerHandler('change')
npm install
and bower install
to get the required dependencieslib
foldergrunt build
to build the dist filesgrunt dev
to show the demo page and watch for changesgrunt test
to run unit testsOriginal author: Jacob Rief
Maintained by: Chad von Nau
Released under the terms of MIT License.
FAQs
Angular directive to emulate the `placeholder` attribute on text and password input fields for old browsers, such as IE9, IE8, and below
The npm package angular-shims-placeholder receives a total of 1,163 weekly downloads. As such, angular-shims-placeholder popularity was classified as popular.
We found that angular-shims-placeholder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.