How to observe touched event on Angular 2 NgForm?

Discussão em 'Angular' iniciado por Chedy2149, Dezembro 15, 2024.

  1. Chedy2149

    Chedy2149 Guest

    It is possible to subscribe a callback to an NgForm's valueChanges observable property in order to react to changes in the values of the controls of the form.

    I need, in the same fashion, to react to the event of the user touching one of the form controls.

    This class seem to define the valueChanges Observable and the touched property is defined as a boolean.

    Is there a way to to react to the "control touched" event?

    Continue reading...

Compartilhe esta Página