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

225
Views
Angular change input value, name and label on repeatable element

I am trying to change the input name, value and label on a repeatable element.

<div class="input" ng-repeat='value in configOption.values track by $index'>
<label>{OptionName}</label>
  <a ng-click="" ng-init="">Change between OPT1 and OPT2</a>
  <input type="text" ng-model="value.opt1" placeholder="OPT1">
</div>

The expected result:

When i am clicking the a element to toggle the input and change the Label From: <input type="text" ng-model="value.opt1" placeholder="OPT1"> To <input type="text" ng-model="value.opt2" placeholder="OPT2">

Being that the entire div is a repeatable element.

Any idea how can i deal with this ?

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