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

Function processSyncValidators

test/angular/1.6/angular.js:29664–29678  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29662 }
29663
29664 function processSyncValidators() {
29665 var syncValidatorsValid = true;
29666 forEach(that.$validators, function(validator, name) {
29667 var result = Boolean(validator(modelValue, viewValue));
29668 syncValidatorsValid = syncValidatorsValid && result;
29669 setValidity(name, result);
29670 });
29671 if (!syncValidatorsValid) {
29672 forEach(that.$asyncValidators, function(v, name) {
29673 setValidity(name, null);
29674 });
29675 return false;
29676 }
29677 return true;
29678 }
29679
29680 function processAsyncValidators() {
29681 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