static/bower_components/angular-schema-form/dist/schema-form.js
function() {
        //scope.modelArray = modelArray;
        scope.modelArray = scope.$eval(attrs.sfNewArray);
        // validateField method is exported by schema-validate
        if (scope.ngModel && scope.ngModel.$pristine && scope.firstDigest &&
            (!scope.options || scope.options.validateOnRender !== true)) {
          return;
        } else if (scope.validateField) {
          scope.validateField();
        }
      }
function() {
        //scope.modelArray = modelArray;
        scope.modelArray = scope.$eval(attrs.sfNewArray);
        // validateField method is exported by schema-validate
        if (scope.ngModel && scope.ngModel.$pristine && scope.firstDigest &&
            (!scope.options || scope.options.validateOnRender !== true)) {
          return;
        } else if (scope.validateField) {
          scope.validateField();
        }
      }
function ( ) { //scope.modelArray = modelArray; scope . modelArray = scope . $eval ( attrs . sfNewArray ) ; // validateField method is exported by schema-validate if ( scope . ngModel && scope . ngModel . $pristine && scope . firstDigest && ( ! scope . options || scope . options . validateOnRender !== true ) ) { return ; } else if ( scope . validateField ) { scope . validateField ( ) ; } }
We need to have a ngModel to hook into validation. It doesn't really play well with arrays though so we both need to trigger validation and onChange. So we watch the value as well. But watching an array can be tricky. We wan't to know when it changes so we can validate,
We need to have a ngModel to hook into validation . It doesn t really play well with arrays though so we both need to trigger validation and onChange . So we watch the value as well . But watching an array can be tricky . We wan t to know when it changes so we can validate