Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 19 2019 11:48
    elpdpt commented #286
  • Mar 06 2019 17:39
    elpdpt commented #103
  • Mar 04 2019 21:28
    hueitan closed #307
  • Mar 04 2019 21:28
    hueitan commented #307
  • Mar 04 2019 04:14
    coveralls commented #307
  • Mar 04 2019 04:14
    coveralls commented #307
  • Mar 04 2019 04:05
    chabzlala29 opened #307
  • Feb 05 2018 11:34
    hueitan commented #306
  • Feb 05 2018 11:29
    coveralls commented #306
  • Feb 05 2018 11:22
    Chhaya02 opened #306
  • Jan 19 2018 19:43
    sanujgandhi commented #304
  • Jan 19 2018 19:42
    sanujgandhi closed #304
  • Jan 19 2018 19:42
    sanujgandhi commented #304
  • Jan 19 2018 10:53
    hueitan commented #304
  • Jan 19 2018 09:32
    sanujgandhi edited #304
  • Jan 19 2018 09:31
    sanujgandhi reopened #304
  • Jan 19 2018 09:31
    sanujgandhi closed #304
  • Jan 19 2018 09:31
    sanujgandhi commented #304
  • Jan 18 2018 15:58
    hueitan commented #305
  • Jan 16 2018 09:24
    sanujgandhi commented #304
hassan alhajhussain
@HassanJabawee
how can i submit form using this validation way
Scott Smith
@scottadamsmith
Does this library require us to call the validate method manually in the controller? The documentation at http://huei90.github.io/angular-validation/#getting_started indicates to me that specifying the directives and including the libraries is all that is needed for basic usage, but it does not appear to ever fire the validate method.
Scott Smith
@scottadamsmith
Anyone know if there is a way to incorporate params (i.e. the 6 in minlength=6) into the error messages?
Huei Tan
@hueitan
@scottadamsmith Yes, you are allow to trigger the validation manually, see the API documentation.
@scottadamsmith I'm not sure what do you mean on the second question.
Scott Smith
@scottadamsmith
I mean for the default messages is there any way to incorporate the param value into the message via some sort of merge field? (i.e. max=6 with a default message of "The maximum allowable lenth is 6"
Scott Smith
@scottadamsmith
by using merge fields, I mean defining the default message as "The maximum allowable length is %param%"
Michael Taylor
@mictay
hi
Huei Tan
@hueitan
hello
cities2grupo4qp1516
@cities2grupo4qp1516
You are using undefined validator "email"
how to fix it?
Steven S.
@steven-github
Hi guys, I'm new using angular-validator
how can I validate password and confirm password
  1. I'm getting the "it's required" message even when I have typed the password...
  2. Password and confirm password validations? How to implement that? Any plunker available to check this?
Steven S.
@steven-github
@scottadamsmith did you figure the "The maximum allowable length is %param%" ?
Steven S.
@steven-github

You could use something like:

minlength-error-message="The minimum allowable length is 5" maxlength-error-message="The maximum allowable length is 10"

Aaron Chen
@aaronisme
Hi everyone, I am new using the angular-validator. and now I am using webpack to build my app and using require('module') to require the library. I am not sure whether I can use angular-validator in this way?
after I use npm install angular-validator —save to install it
var test = require('angular-validation')
console.log(test)
seems not work
Huei Tan
@hueitan
note, angular-validator and angular-validation are both different libraries.
@steven-github @aaronisme
Juan Manuel Filandini
@forrochan
Hey
does anybody knows how to validate in fields in pairs inside a form?
i mean check that if i have certain value in a field, i cant use certain value in the other
using angular-validation?
Huei Tan
@hueitan
I'm not understand what's the meaning of "in fields in paris inside a form", do you mind open an issue to explain your question?
Rick
@rickerd
Anybody here?
Rick
@rickerd
Hmm strange.. Why doesn't this work?
<input type="text" id="zipcode" class="form-control" name="zipcode"
                                       data-validator="zipcode" data-ng-model="identity.zipcode"
                                       data-ng-required="isRequired('zipcode')"
                                       valid-callback='error("Jayy valid");'/>
Rick
@rickerd
And i mean the callback doesn't work. Sorry i was rather vage
perumananth
@perumananth
how can i download
dist/angular-validation.js
dist/angular-validation-rule.js
Olof Fredriksson
@OlofFredriksson
Hello! There is an example in the README how to get the invalid message for a specific input field (https://github.com/huei90/angular-validation/blob/master/API.md#custom-errorsuccess-message-function) , but how do i recieve it when a global invalid is defined in the config phase?
jejja
@jejja
Hi. When to use validation-submit on a submit-button?
jejja
@jejja
I get this error: This is not a regular Form name scope
Anyone?
TypeError: b.validate(...).success is not a function
jejja
@jejja
The button is outside the form of a reason.
Chris
@poppahorse
hey @jejja yeah just came up against the same issue, no joy in resolving though :(
also @huei90 any reason why validate-submit would be blocking ng-submit?
jejja
@jejja

@poppahorse I think that it will not trigger any ng-click or ng-submit until its all valid. I dont use that. I use in stead the

$validationProvider.validate(form)
                .success(successCallback)
                .error(errorCallback);

In the controller.

And by the way. I solved the issue above. The problem was that for some reason it was not a HTML-form I tried to validate.
Chris
@poppahorse
yeah it tries to grab the scope based on the formName
and kinda resolved my issue now by putting ng-submit="form.checkValid(formName) && form.submit(formName)" and same on ng-click on the button
Johnny Gonçalves de Santana
@johnnytn
Hello! Anyone knows how to use !form.checkValid() ? I'm trying to disable a button, but it's always returning true
Also I was trying to inject $validationProvider on my controller and I was getting an unknown provider error. A little strange cuz I was able to use it inside .config
Arryon Tijsma
@arryon
Hi, does anyone know how to import this module with Webpack? the regular const validator = require('angular-validation'); method doesn't work
Arryon Tijsma
@arryon
It only seems to work if I define 'validation.rule' as my own component as such (ES6):
//components/validation/validation.component.js
import 'angular-validation';
export defaults angular.module('validation.rule', ['validation'])
  .config(['$validationProvider', function($validationProvider) {
    // ruleset from https://raw.githubusercontent.com/huei90/angular-validation/master/dist/angular-validation-rule.js
}])
.name;
And them import it in app.js as
import validation from 'components/validation/validation.component';
angular.module('app', [
  validation
  //...