Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
angular-bootstrap-forms
Advanced tools
angular directives for twitter bootstrap forms
Instead of writing the above code:
<div class="form-group has-feedback" ng-class="{'has-success':form.field.$valid, 'has-error':form.field.$invalid && (form.$submitted || form.field.$dirty)}">
<label class="control-label">Field</label>
<input type="text" ng-model="model.field" name="field" class="form-control" required ng-minlength="3" aria-describedby="inputError2Status">
<span class="form-control-feedback" aria-hidden="true">
<i class="fa" ng-class="form.field.$invalid && form.field.$dirty ? 'fa-exclamation-triangle':'fa-check'"></i>
</span>
<span id="inputError2Status" class="sr-only">(error)</span>
<div class="help-block" ng-if="form.field.$dirty || form.$submitted" ng-messages="form.field.$error" role="alert">
<small ng-message="required">This field cannot be blank</small>
<small ng-message="minlength">Minimum length:</small>
<small ng-message="email">Invalid email address</small>
</div>
</div>
just write:
<div class="form-group">
<label class="control-label">Field</label>
<input type="text" ng-model="model.field" name="field" class="form-control" required abf-show-feedback ng-minlength="3">
</div>
var abf = require('angular-bootstrap-forms');
angular.module('myApp', [
abf.name
]);
FAQs
angular directives for twitter bootstrap forms
The npm package angular-bootstrap-forms receives a total of 1 weekly downloads. As such, angular-bootstrap-forms popularity was classified as not popular.
We found that angular-bootstrap-forms 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.