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

232
Views
How to pass Form controller name and its value to a function in Angular 10?

I want to get the formControllerName and its value when focusout event happens on the below Angular input field. I have a Form with huge number of input fields like the below example. So, I want to do some operations on all input fields with respect to the Form controller. So, I want to try something like

(focusout)="passdataFunction(formControlName , formControlName.value)"

 <mat-form-field appearance="outline">

 <mat-label>Designation<span class="redColor">*</span></mat-label>
 <input matInput formControlName="Delegate_designation" id="Delegate_designation" #Delegate_designationValue  placeholder="Designation in the Company">

 </mat-form-field>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Use your FormGroup (that you must have somewhere):

(focusout)="passdataFunction(formGroup.get('formControlName'))"

This will give you the AbstractControl.

about 4 years ago · Juan Pablo Isaza 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!