I am aware that I can get the values of a form using
JSON.stringify(this.formName.value)
However, I want to get a single value from the form.
How do I go about doing that?
Get and Set Value To fetch the value of a form control, we have to use value property on the instance of FormControl in our class. In the same way we can fetch the value in HTML template. city = new FormControl('Noida'); console.
You can get value like this
this.form.controls['your form control name'].value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With