If the value != null
assertion fails in the leaf component, want the validation root to produce an error object that looks like
{
"leaf": {
"inner": {
"required": true
}
}
}
If the value != null
assertion fails in the leaf component, want the validation root to produce an error object that looks like
{
"leaf": {
"inner": {
"required": true
}
}
}
<div validationPath="inner" | |
[validations]="{required: value != null}"></div> |
<div validationRoot #root="validation"> | |
<leaf-component validationPath="leaf"> | |
</leaf-component> | |
<button [disabled]="!root.valid"></button> | |
</div> |