javascript - 所选值未出现在 angular-ui-select 中

标签 javascript angularjs html angular-ui-select

Angular 选择用户界面无法正常工作..

[http://plnkr.co/edit/CKHbiSQ4tZXTjOyxpyBK?p=preview][1]

选择列表无法正常工作。 无法使用 option.text 和 option.value。

我想在所选中显示所选值,但我无法这样做。

最佳答案

在 Controller 中定义选项。它将解决问题。

$scope.option = {};

这是 plunker 链接: http://plnkr.co/edit/Z1oqz2r3Iq5khAF3GVI1?p=preview

关于javascript - 所选值未出现在 angular-ui-select 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32443694/

相关文章:

javascript - 是否可以动态重写你的javascript

javascript - 等待重定向成功

angularjs - AngularJS 中的 $scope 与 var

angularjs - 如何使用 ngrx 实体选择器?

javascript - 如何使 sumoselect 下拉菜单更宽

javascript - 如何将 CSS 合并到表格中

javascript - 使用 Angular 显示复杂 json 的列表

html - Liferay 复选框/单选样式

asp.net - IFrame:此内容无法在框架中显示

HTML 滚动条只显示部分框边框