Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-bootstrap-forms

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-bootstrap-forms

angular directives for twitter bootstrap forms

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

angular-bootstrap-forms

angular directives for twitter bootstrap forms

requirements

  • angular@^1.4
  • angular-messages@^1.4
  • twitter bootstrap@^3
  • font-awesome@^4
  • browserify

example

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>

Installation

var abf = require('angular-bootstrap-forms');

angular.module('myApp', [
	abf.name
]);

Roadmap to 1.0

  • Unit tests using karma
  • input[type=text] form-control
  • input[type=email] form-control
  • select form-control
  • textarea form-control
  • standalone build
  • comprehensive documentation

Keywords

FAQs

Package last updated on 05 Jan 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc