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

201
Views
Migrate from Angular-2 select element to a bootstrap dropdown

I have this dropdown in my project with an ng-model and ng-change taking care of state management.

 <select ng-model=“dropdown” id="select-engagement" ng-change=“changeValue()”>
   <option role="option" ng-repeat=“value in data.values” value=“{{::value.sys_id}}”> 
     {{::value.name}}
   </option>
 </select>

I'm in the process of replacing this select dropdown with a bootstrap dropdown -

<div class="dropdown keep-open">
  <button id="dLabel" role="button" href="#" data-toggle="dropdown" 
    data-target="#" class="btn btn-primary">
    <span class="caret"></span>
  </button>

  <ul class="dropdown-menu" role="menu">
    <li ng-repeat="value in data.values" value="{{::value}}">
      <a href="#">{{::value.name}}</a>
    </li>
  </ul>
</div>

Where should I add my ng-model and ng-change? How will the state be managed with bootstrap dropdown? Sorry, I'm new to angular.

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!