Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

252
Views
How to get a single value from FormGroup

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?

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

You can get value like this

this.form.controls['your form control name'].value
about 4 years ago · Santiago Trujillo Report

0

Yes, you can.

this.formGroup.get('name of you control').value
about 4 years ago · Santiago Trujillo Report

0

Dot notation will break the type checking, switch to bracket notation. You might also try using the get() method. It also keeps AOT compilation in tact I've read.

this.form.get('controlName').value // safer
this.form.controlName.value // triggers type checking and breaks AOT
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!