Click here to Skip to main content
14,693,774 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Ng-repeat is not showing any data in select options. is there any different way to show option value in select for ng-repeat

When I am using without class="selectpicker" in select tag. Its working fine. How can I use bootstrap select with ng-repeat.

What I have tried:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.11/css/bootstrap-select.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.11/js/bootstrap-select.min.js"></script>


 <div>
<select ng-model="selEmployee" name="selEmployee" class="selectpicker">
   <option value=0>All</option>
   <option ng-repeat="employee in employees" value="{{employee.Ldap | lowercase}} ">{{employee.FirstName}} {{employee.LastName}}</option>
</select></div>
Posted
Comments
Muni Kumar G 28-Oct-19 5:18am
   
Did you check weather the employees has multiple employee records and inspect the dom and see weather it created multiple options are not.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900