MCPcopy Index your code
hub / github.com/angular-ui/ui-router / processSyncValidators

Function processSyncValidators

test/angular/1.5/angular.js:28261–28275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28259 }
28260
28261 function processSyncValidators() {
28262 var syncValidatorsValid = true;
28263 forEach(ctrl.$validators, function(validator, name) {
28264 var result = validator(modelValue, viewValue);
28265 syncValidatorsValid = syncValidatorsValid && result;
28266 setValidity(name, result);
28267 });
28268 if (!syncValidatorsValid) {
28269 forEach(ctrl.$asyncValidators, function(v, name) {
28270 setValidity(name, null);
28271 });
28272 return false;
28273 }
28274 return true;
28275 }
28276
28277 function processAsyncValidators() {
28278 var validatorPromises = [];

Callers 1

angular.jsFile · 0.70

Calls 3

validatorFunction · 0.85
forEachFunction · 0.70
setValidityFunction · 0.70

Tested by

no test coverage detected