这里是我的代码:在下降,从数据库中获取值下降
<ui-select ng-model="apptDetails.profile" name="profile" theme="bootstrap" ng-required="true">
<ui-select-match placeholder="Select Profile" >{{$select.selected.Profile_name}}
</ui-select-match>
<ui-select-choices
repeat="profile.Profile_id as profile in profileList | filter: $select.search">
<span ng-bind-html="profile.Profile_name | highlight: $select.search" ></span>
</ui-select-choices>
</ui-select>
我需要从数据库中获取价值和它在下拉菜单中显示出来,我在NG-模型得到的值,但它不能在下降设置下来(不在选项),但是,如果我发送后请求它的作品。
例如:如果配置文件在特定用户的数据库上是abc,它将显示在选定的下拉列表中。当我从表单中获取该用户的信息时,所有文本字段都会从模型中获取数据,但不能在下拉列表中显示。
你可以让JS捣鼓它 –
什么用JS小提琴是什么意思? –
它是一个在线平台,您可以在线运行和测试您的js和html代码 –