Angularjs Custom select2 directive

后端 未结 5 1873
温柔的废话
温柔的废话 2021-02-04 04:36

I have created simple custom AngularJs directive for this awesome jquery plugin jQuery-Select2 as follows:

Directive

app.directive(\"sel         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-04 05:29

    I tried to reproduce your issue and it seems to work well. here is the fiddle I came up with:

    http://jsfiddle.net/s24gLdgq/

    You may have a different behavior depending on the version of Angular and/or Select2 you are using, could you specify that?

    Also if you want to prevent flickering, be sure to hide the default

    提交评论

提交回复
热议问题