Bootstrap 标签输入在 angularjs 中对我不起作用。我什么都试过了,但什么都没有,它只是增加了区域框,我什至不能写东西。
<bootstrap-tagsinput ng-model="currentInventory.tags" itemvalue="value" itemtext="text"></bootstrap-tagsinput>
Bootstrap 标签输入在 angularjs 中对我不起作用。我什么都试过了,但什么都没有,它只是增加了区域框,我什至不能写东西。
<bootstrap-tagsinput ng-model="currentInventory.tags" itemvalue="value" itemtext="text"></bootstrap-tagsinput>
在您的 bootstrap-tags 输入中,您还需要指定 typeahead-source,如 example here 所示。更新链接代替上面的非功能: Angular Example 查找“AngularJS 支持”部分并单击“显示代码”
在 Angular JS 应用程序中包含 bootstrap-tagsinput-angular.js 并注册
bootstrap-tagsinput
以使用 bootstrap-tagsinput 指令。index.html
中添加脚本在您的模块中添加
bootstrap-tagsinput
,如下所示: