Setting model values in Angular 2 can be done in a few different ways, however with reactive forms things are extremely easy to do with the new form APIs. In this post we’ll dig a little deeper as to the differences between patchValue
and setValue
in Angular 2 forms.
Source: Updating Angular 2 Forms with patchValue or setValue