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

Function maxLengthValidator

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

Source from the content-addressed store, hash-verified

17063 if (attr.ngMaxlength) {
17064 var maxlength = int(attr.ngMaxlength);
17065 var maxLengthValidator = function(value) {
17066 return validate(ctrl, 'maxlength', ctrl.$isEmpty(value) || value.length <= maxlength, value);
17067 };
17068
17069 ctrl.$parsers.push(maxLengthValidator);
17070 ctrl.$formatters.push(maxLengthValidator);

Callers

nothing calls this directly

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected