MCPcopy Create free account
hub / github.com/binux/qiandao / minLengthValidator

Function minLengthValidator

web/static/components/angularjs/angular.js:17054–17056  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

17052 if (attr.ngMinlength) {
17053 var minlength = int(attr.ngMinlength);
17054 var minLengthValidator = function(value) {
17055 return validate(ctrl, 'minlength', ctrl.$isEmpty(value) || value.length >= minlength, value);
17056 };
17057
17058 ctrl.$parsers.push(minLengthValidator);
17059 ctrl.$formatters.push(minLengthValidator);

Callers

nothing calls this directly

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected