dist/@ajsf/core/esm2015/lib/json-schema-form.component.js
/**
     * 'initializeData' function
     *
     * Initialize 'formValues'
     * defulat or previously submitted values used to populate form
     * Use first available input:
     * 1. data - recommended
     * 2. model - Angular Schema Form style
     * 3. form.value - JSON Form style
     * 4. form.data - Single input style
     * 5. formData - React JSON Schema Form style
     * 6. form.formData - For easier testing of React JSON Schema Forms
     * 7. (none) no data - initialize data from schema and layout defaults only
     */
'initializeData' function
Initialize 'formValues'
defulat or previously submitted values used to populate form
Use first available input:
1. data - recommended
2. model - Angular Schema Form style
3. form.value - JSON Form style
4. form.data - Single input style
5. formData - React JSON Schema Form style
6. form.formData - For easier testing of React JSON Schema Forms
7. (none) no data - initialize data from schema and layout defaults only
' initializeData ' function Initialize ' formValues ' defulat or previously submitted values used to populate form Use first available input : 1 . data - recommended 2 . model - Angular Schema Form style 3 . form . value - JSON Form style 4 . form . data - Single input style 5 . formData - React JSON Schema Form style 6 . form . formData - For easier testing of React JSON Schema Forms 7 . ( none ) no data - initialize data from schema and layout defaults only
initializeData() {
        if (hasValue(this.data)) {
            this.jsf.formValues = cloneDeep(this.data);
            this.formValuesInput = 'data';
        }
        else if (hasValue(this.model)) {
            this.jsf.AngularSchemaFormCompatibility = true;
            this.jsf.formValues = cloneDeep(this.model);
            this.formValuesInput = 'model';
        }
        else if (hasValue(this.ngModel)) {
            this.jsf.AngularSchemaFormCompatibility = true;
            this.jsf.formValues = cloneDeep(this.ngModel);
            this.formValuesInput = 'ngModel';
        }
        else if (isObject(this.form) && hasValue(this.form.value)) {
            this.jsf.JsonFormCompatibility = true;
            this.jsf.formValues = cloneDeep(this.form.value);
            this.formValuesInput = 'form.value';
        }
        else if (isObject(this.form) && hasValue(this.form.data)) {
            this.jsf.formValues = cloneDeep(this.form.data);
            this.formValuesInput = 'form.data';
        }
        else if (hasValue(this.formData)) {
            this.jsf.ReactJsonSchemaFormCompatibility = true;
            this.formValuesInput = 'formData';
        }
        else if (hasOwn(this.form, 'formData') && hasValue(this.form.formData)) {
            this.jsf.ReactJsonSchemaFormCompatibility = true;
            this.jsf.formValues = cloneDeep(this.form.formData);
            this.formValuesInput = 'form.formData';
        }
        else {
            this.formValuesInput = null;
        }
    }
initializeData ( ) { if ( hasValue ( this . data ) ) { this . jsf . formValues = cloneDeep ( this . data ) ; this . formValuesInput = 'data' ; } else if ( hasValue ( this . model ) ) { this . jsf . AngularSchemaFormCompatibility = true ; this . jsf . formValues = cloneDeep ( this . model ) ; this . formValuesInput = 'model' ; } else if ( hasValue ( this . ngModel ) ) { this . jsf . AngularSchemaFormCompatibility = true ; this . jsf . formValues = cloneDeep ( this . ngModel ) ; this . formValuesInput = 'ngModel' ; } else if ( isObject ( this . form ) && hasValue ( this . form . value ) ) { this . jsf . JsonFormCompatibility = true ; this . jsf . formValues = cloneDeep ( this . form . value ) ; this . formValuesInput = 'form.value' ; } else if ( isObject ( this . form ) && hasValue ( this . form . data ) ) { this . jsf . formValues = cloneDeep ( this . form . data ) ; this . formValuesInput = 'form.data' ; } else if ( hasValue ( this . formData ) ) { this . jsf . ReactJsonSchemaFormCompatibility = true ; this . formValuesInput = 'formData' ; } else if ( hasOwn ( this . form , 'formData' ) && hasValue ( this . form . formData ) ) { this . jsf . ReactJsonSchemaFormCompatibility = true ; this . jsf . formValues = cloneDeep ( this . form . formData ) ; this . formValuesInput = 'form.formData' ; } else { this . formValuesInput = null ; } }
'initializeData' function
 Initialize 'formValues'
 defulat or previously submitted values used to populate form
 Use first available input:
 1. data - recommended
 2. model - Angular Schema Form style
 3. form.value - JSON Form style
 4. form.data - Single input style
 5. formData - React JSON Schema Form style
 6. form.formData - For easier testing of React JSON Schema Forms
 7.
' initializeData ' function Initialize ' formValues ' defulat or previously submitted values used to populate form Use first available input : 1 . data - recommended 2 . model - Angular Schema Form style 3 . form . value - JSON Form style 4 . form . data - Single input style 5 . formData - React JSON Schema Form style 6 . form . formData - For easier testing of React JSON Schema Forms 7 .