Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
angular-auto-value
Advanced tools
An extension to Angular.js to add automatic model value assignment from the `value` attribute on elements.
An extension to angular to automatically update models via the value
attribute.
** If you're using angular < 1.3 you'll please use angular-auto-value < 2.0.0. **
<body ng-app>
<div ng-controller="MyCtrl">
<input type="text" ng-model="text" value="Here's my text"/>
</div>
</body>
Before installing this module, the above will produce an empty input field.
Usually you'd have to set the default value in the controller:
function MyCtrl($scope) {
$scope.text = "Here's my text";
}
... or use the ng-init
attribute:
<body ng-app>
<div ng-controller="MyCtrl" ng-init="text = 'Here\'s my text';">
<input type="text" ng-model="text" value="Here's my text"/>
</div>
</body>
Using this module does away with that. If a model is created on an input or textarea element, with a value set, the model will automatically be updated.
angular.module('myMod', ['auto-value']);
<body ng-app="myMod">
<input type="text" ng-model="text" value="Here's my text"/>
<textarea ng-model="textarea">Here's a large blob of text</textarea>
</body>
This will also work for radios, checkboxes and all text inputs including dates, months, weeks etc.
$ bower i --save angular-auto-value
<script src="bower_components/angular-auto-value/angular-auto-value.min.js"></script>
<script src="//cdn.jsdelivr.net/angular.auto-value/latest/angular-auto-value.min.js"></script>
npm run update-webdriver
npm test
To Run tests as you change files: npm run dev
There is a git hook available for shell environments that will automatically test and compile the module when commiting it. To use it simply link it in to the git hook directory.
cd .git/hooks && ln -s ../../git-hooks/pre-commit.sh pre-commit
FAQs
An extension to Angular.js to add automatic model value assignment from the `value` attribute on elements.
The npm package angular-auto-value receives a total of 0 weekly downloads. As such, angular-auto-value popularity was classified as not popular.
We found that angular-auto-value demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.