Ways to update the model value
- Use the setValue() method to set a new value for an individual control. The setValue() method strictly adheres to the structure of the form group and replaces the entire value for the control.
- Use the patchValue() method to replace any properties defined in the object that have changed in the form model.
Ways to update the model value → belongs to → Reactive forms.