Created
September 1, 2017 14:32
-
-
Save codeepic/287ef7c7ed6bc49649c2274281e561b2 to your computer and use it in GitHub Desktop.
Change values in Angular reactive form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.form.setValue({search: ''}); //you have to provide all form controls | |
//OR | |
this.form.patchValue({search: ''}); //you can only provide 1 form control that you want to update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment