angularjs - ng-repeat not working when include jQuery -
i'm using zurb-foundation angularjs.
i have following code:
<div class="row full" ng-controller="movies"> <div class="large-3 columns"> <form class="custom"> <select id="customdropdown" class="small button dropdown secondary radius"> <option disabled selected>movie selection</option> <option ng-repeat="movie in movie_list.movies">{{movie.name}}</option> </select> </form> </div> </div> function movies($scope) { $scope.movie_list = { movies : [{name:'movie1'}, {name:'movie2'}]}; } i have included jquery plugin, because needed foundation. when jquery not included code works fine, when include jquery nothing shown in dropbox, , text should there @ bottom of page.
have @ plnkr :- http://plnkr.co/edit/9w2jtg?p=preview
i'm using foundation select box jquery , angularjs , it's working fine. might order script references in. hard without seeing code.
also, did notice when first select option disabled , has no empty value, select box becomes blank , way open click on little arrow, so:
this doesn't work correctly:
<option disabled>please select...</option> works fine:
<option value="" disabled>please select...</option>
Comments
Post a Comment