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

261
Views
Cómo obtener un valor único de FormGroup

Soy consciente de que puedo obtener los valores de un formulario usando

 JSON.stringify(this.formName.value)

Sin embargo, quiero obtener un valor único del formulario.

¿Cómo hago para hacer eso?

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Puedes obtener un valor como este

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

0

Sí tu puedes.

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

0

La notación de puntos romperá la verificación de tipos, cambiará a la notación de corchetes. También puede intentar usar el método get(). También mantiene intacta la compilación AOT que he leído.

 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!