What is updateValueAndValidity

These documents report the following:

If emitEvent is true, this change will raise the valueChanges event to be issued by FormControl. This default value is true (as it falls through updateValueAndValidity).

What is this updateValueAndValidity ?

+6
source share
1 answer

You can subscribe to changes in the value of the control or the entire form.

updateValueAndValidity allows updateValueAndValidity to change the value of one or more form controls, and the flag allows you to specify whether you want this value to be passed to valueChanges subscribers.

+3
source

Source: https://habr.com/ru/post/1014930/


All Articles