Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Kilbride jeff-kilbride

  • Los Angeles, CA
View GitHub Profile
@jeff-kilbride
jeff-kilbride / bsStyle.directive.js
Last active May 3, 2016
Adding bootstrap validation styling to angular with a custom directive
View bsStyle.directive.js
// Directive for applying bootstrap validation styles.
/*
Sample HTML block.
<div class="form-group has-feedback" bs-style>
<label for="fName">First Name</label>
<input type="text" class="form-control" name="fName" id="fName" ng-model="vm.fName"
ng-minlength="2" ng-maxlength="20" required/>