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 11:48
    elpdpt commented #286
  • Mar 06 17:39
    elpdpt commented #103
  • Mar 04 21:28
    hueitan closed #307
  • Mar 04 21:28
    hueitan commented #307
  • Mar 04 04:14
    coveralls commented #307
  • Mar 04 04:14
    coveralls commented #307
  • Mar 04 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
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
  //...
burhanfarooqws
@burhanfarooqws
Hi
I am trying to use this validation with this boilerplate so far no luck
https://github.com/StrikeForceZero/angularjs-cordova-gulp-browserify-boilerplate
anyone what I am doing wrong the gulp task just say that
[13:47:52] Browser platform and plugins injected!
[13:47:52] Rebundling...
[13:47:53] gulp-notify: [Compile Error] Cannot find module 'angular-validate'

This is how I am including it
import angular from 'angular';

// angular modules
import constants from './constants';
import onConfig from './on_config';
import onRun from './on_run';
import 'angular-ui-router';
import './templates';
import './filters';
import './controllers';
import './services';
import './directives';

import 'ng-cordova';
import 'angular-validate';
import angularSpinner from 'angular-spinner';

// create and bootstrap application
const requires = [
'ui.router',
'templates',
'app.filters',
'app.controllers',
'app.services',
'app.directives',
'ngCordova',
'angularSpinner',
'validation'
];

// mount on window for testing
window.app = angular.module('app', requires);

angular.module('app').constant('AppSettings', constants);

angular.module('app').config(onConfig);

angular.module('app').run(onRun);

angular.bootstrap(document, ['app'], {
strictDi: true
});

S Vinesh
@svinesh3691
Hi
Is there some way to do password match validation with retype password and password fields with this plugin?
@steven-github I need the same thing you asked for. Have you done that ?
S Vinesh
@svinesh3691
inapp
tahermahodia
@tahermahodia
Hello
same question Svinesh
Ramón García
@rmngrc
Hi there