Form
{
"$error": {},
"$name": "vm.form",
"$dirty": false,
"$pristine": true,
"$valid": true,
"$invalid": false,
"$submitted": false,
"vm.form_input_firstInput_0": {
"$validators": {},
"$asyncValidators": {},
"$parsers": [],
"$formatters": [
null
],
"$viewChangeListeners": [],
"$untouched": true,
"$touched": false,
"$pristine": true,
"$dirty": false,
"$valid": true,
"$invalid": false,
"$error": {},
"$name": "vm.form_input_firstInput_0",
"$options": null
}
}
Fields (note, functions are not shown)
[
{
"key": "firstInput",
"type": "input",
"templateOptions": {
"label": "Input",
"placeholder": "Formly is terrific!"
},
"expressionProperties": {
"templateOptions.label": "model[options.key] || \"Input\""
}
},
{
"key": "text",
"type": "checkbox",
"templateOptions": {
"label": "Hidden box"
},
"hideExpression": "!model.firstInput"
}
]