angular 5 template forms detect change of form validity status

Discussão em 'Angular' iniciado por Cec, Dezembro 4, 2024.

  1. Cec

    Cec Guest

    are reactive forms the way to go in order to have a component that can listen for changes in the validity status of the form it contains and execute some compoment's methods?

    It is easy to disable the submit button in the template using templateRef like [disabled]="#myForm.invalid", but this does not involve the component's logic.

    Looking at template forms' doc I did not find a way

    Continue reading...

Compartilhe esta Página