What is the purpose of the valueChanges method on a FormControl?

  •  It is used to configure what values are allowed for the control.
  •  It is used to change the value of a control to a new value. You would call that method and pass in the new value for the form field. It even supports passing in an array of values that can be set over time.
  •  It returns a Boolean based on if the value of the control is different from the value with which it was initialized.
  •  It is an observable that emits every time the value of the control changes, so you can react to new values and make logic decisions at that time.

Leave a Reply

Your email address will not be published. Required fields are marked *