So, here's the thing : I have an ng-repeat allowing me to create multiple lines each containing a dropdown from Semantic UI.
Thing is, Semantic UI Dropdown needs to be initialized with the following code :
$('.ui.dropdown')
.dropdown()
;
Unfortunately, ng-repeat creates his own scope in which the dropdown isn't initialized anymore. How could I inject this code into ng-repeat's ? Or do any of you have any tip to fix it by another way ?
The fact is, when you have an ng-repeat inside a select in the option, it works perfectly, but when you do an ng-repeat outside of the dropdown and therefore copying it multiple times, the multiple dropdowns you'll have won't work at all.
Here is an example of what I need to do in a JSFiddle : http://ift.tt/2yDb8IX
Aucun commentaire:
Enregistrer un commentaire