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

Function processSyncValidators

test/angular/1.4/angular.js:25753–25767  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25751 }
25752
25753 function processSyncValidators() {
25754 var syncValidatorsValid = true;
25755 forEach(ctrl.$validators, function(validator, name) {
25756 var result = validator(modelValue, viewValue);
25757 syncValidatorsValid = syncValidatorsValid && result;
25758 setValidity(name, result);
25759 });
25760 if (!syncValidatorsValid) {
25761 forEach(ctrl.$asyncValidators, function(v, name) {
25762 setValidity(name, null);
25763 });
25764 return false;
25765 }
25766 return true;
25767 }
25768
25769 function processAsyncValidators() {
25770 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