0

请看这个插件:http: //embed.plnkr.co/hvQ6gflnNrpdcZfXSLMH/

第一次选择选项时,选项被选中,但select2显示空标签。仅当第二次选择该选项时,标签才会出现。我在没有使用 angular-ui-select2 指令的情况下检查了 select2,它运行良好。我尝试了几个版本的select2,也尝试了ui-select2 0.0.4和0.0.5版本。

在 github 上打开了一个问题:https ://github.com/angular-ui/ui-select2/issues/239但到目前为止没有评论,所以我想也许社区可以提供帮助。

谢谢,里奥

4

2 回答 2

1

目前,ui-select2 与

https://github.com/angular-ui/ui-select2#working-with-dynamic-options

于 2014-07-02T14:37:38.940 回答
0

如果您需要一个适用于动态选项的替代方案,您可以查看https://github.com/angular-ui/ui-select。它是 select2 & selectize 的原生 AngularJS 版本。

于 2015-04-07T01:13:27.980 回答