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

Posted in: Articles.
Last Modified: November 26, 2016

Leave a Reply