1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Control status does not update in validate NG_VALIDATORS

Discussão em 'Angular' iniciado por Sean, Outubro 25, 2024 às 13:22.

  1. Sean

    Sean Guest

    I want to do something when the control status changes. I am using NG_VALUE_ACCESSOR and NG_VALIDATORS. The validate function gets the control but the values don't seem to change.

    Sample code https://stackblitz.com/edit/angular-custom-formcontrols-oqmwqg

    Line 50 never happens in json-input component.

    I want the action to happen in the component, not outside. If you make the textarea empty, the control is invalid but status in validate never updates.

    Continue reading...

Compartilhe esta Página