gabigrin / angular-validation-messages Goto Github PK
View Code? Open in Web Editor NEWAdd validation messages to your forms in a breeze
Home Page: http://gabigrin.github.io/angular-validation-messages/
License: MIT License
Add validation messages to your forms in a breeze
Home Page: http://gabigrin.github.io/angular-validation-messages/
License: MIT License
For now, global options can be changed in run
block, ie:
App.run(function (ValidationMessagesHelper) {
ValidationMessagesHelper.setOptions({ ... });
});
I believe it should be in config
block, ie:
App.config(function (ggVmsgConfig) {
ggVmsgConfig.hideClassName = 'hide';
...
});
Is there any way to use it with
http://getbootstrap.com/components/#input-groups-checkboxes-radios
<div class="input-group">
<span class="input-group-addon">
<input type="checkbox" ng-model="delivery.isInsuranceCovered"> Yes
</span>
<input id="insuranceCovered"
name="insuranceCovered"
ng-required="delivery.isInsuranceCovered"
type="text" class="form-control"
ng-model="delivery.insuranceCovered"
ng-disabled="!delivery.isInsuranceCovered"
maxlength="100" vmsg>
</div>
Hi Gabriel,
Thanx for accepting my pull request and merging it into the master. The thing is that you not yet bumped (increased) the bower version number. So if I use angular-validation-messages
via bower, I don't have the latest fixes.
Regards,
Peter
Can't find this package in NPM. It would be awesome if you can publish it :)
Please see sample at http://plnkr.co/edit/wXN7kBRlTWrA5ZDfG7Oc?p=preview
"ab" shows error message (correct)
"abc" hides error message (correct)
"abcd" hides error message (incorrect)
I've traced this and I think the cause is that the keydown event doesn't always get the last character typed. A keyup event would cover this case.
By analogy with parentErrorClassName
add parentSuccessClassName
with has-success
resolve.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.