Skip to content Skip to sidebar Skip to footer

Select2 Inside Ng-repeat Is Not Working. See The Snippet

I am trying to use select2 inside ng-repeat inside modal. It is working fine outside ng-repeat but when I use it in inside ng-repeat, it shows as simple select and options. I repro

Solution 1:

Update: I found solution: I triggered select 2 after ng-repeat loaded by calling function. We can also put timeout function to trigger this --> $(".js-example-basic-multiple").select2({});

See the snippet I edited my post.

Post a Comment for "Select2 Inside Ng-repeat Is Not Working. See The Snippet"