How to make all controls inside formGroup as untouched?

Discussão em 'Angular' iniciado por OwlR, Setembro 13, 2024.

  1. OwlR

    OwlR Guest

    I have a FormGroup inside which there are three controls. When I add values of three controls in list, by button click, then all formcontrols display 'red line' around them due to null/empty value. I want to get rid of this behavior (no redline). I can call setError(null) method on individual control which removes red line around single control but I want to do this with directly FormGroup. 'markAsPresitne()', markAsUntouched() don't work either. Calling setError(null) on FormGroup don't work either.

    Continue reading...

Compartilhe esta Página