Angularjs Custom select2 directive

后端 未结 5 1930
温柔的废话
温柔的废话 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:33

    It does not directly answer your question, but please take it as there are some people out there who wants to do another approach rather than sticking to jQuery select2.

    I have built my own for this purpose because I was not satisfied the existing ones that are not exactly following Angular principles, HTML-first.

    It's still early stage, but I think all features are working in all modern browsers.

    https://github.com/allenhwkim/angular-autocomplete

    These are examples

    • Single Select
    • Multi Select
    • Custom Design
    • Google Address Complete

提交回复
热议问题