MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / processSyncValidators

Function processSyncValidators

code/songhop/www/lib/angular/angular.js:20682–20696  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20680 }
20681
20682 function processSyncValidators() {
20683 var syncValidatorsValid = true;
20684 forEach(ctrl.$validators, function(validator, name) {
20685 var result = validator(modelValue, viewValue);
20686 syncValidatorsValid = syncValidatorsValid && result;
20687 setValidity(name, result);
20688 });
20689 if (!syncValidatorsValid) {
20690 forEach(ctrl.$asyncValidators, function(v, name) {
20691 setValidity(name, null);
20692 });
20693 return false;
20694 }
20695 return true;
20696 }
20697
20698 function processAsyncValidators() {
20699 var validatorPromises = [];

Callers 1

angular.jsFile · 0.70

Calls 2

forEachFunction · 0.70
setValidityFunction · 0.70

Tested by

no test coverage detected