【发布时间】:2019-04-19 19:55:12
【问题描述】:
我发现了这个非常好的 Angular 搜索菜单示例。
<ui-select ng-model="ctrl.person.selected" theme="bootstrap">
<ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="item in ctrl.people | filter: $select.search">
<div ng-bind-html="item.name | highlight: $select.search"></div>
<small ng-bind-html="item.email | highlight: $select.search"></small>
</ui-select-choices>
</ui-select>
我想扩展示例并从选择菜单中添加所选项目的列表。你能帮我实现这个功能吗?
【问题讨论】:
-
请把问题解释清楚,否则只会被否决
-
问题是如何在选择菜单下方添加所选项目列表?
-
@PeterPenzov 我认为您应该查看您的问题的标签,因为根据代码,您使用的 AngularJS 与 Angular 非常不同
-
你的意思是从下拉列表中选择多个值?
-
是的,你能给我举个例子吗?
标签: angular angular6 angular-components