Reputation: 37
<ul class="dropdown-menu" ng-repeat="_Routevalue in _ViewItems">
<!--<li><a>Hello</a></li>-->
<!--<li><a>Hello</a></li>-->
<li>{{_Routevalue.productName}}</li>
</ul>
Here's the hardcoded values displayed properly, but when I use the ng-repeat
it's only showing the last one.
Upvotes: 0
Views: 37
Reputation: 3387
You should add ng-repeat to the <li>
, not to the <ul>
<ul class="dropdown-menu">
<li ng-repeat="_Routevalue in _ViewItems">{{_Routevalue.productName}}</li>
</ul>
Upvotes: 2