html - 带有2个选择组的Angularjs下拉列表如何实现过滤器
问题描述
我有一个下拉列表,其中包含您可以在此行下看到的代码,我希望在下拉列表的第一个位置输入文本,因此如果您编写下拉列表的选项,则会被过滤。
任何想法?
<label>Perros/Gatos (*)</label>
<div class="customClass">
<select ng-model="mascotas.type"
ui-select2="ui-select2"
required>
<optgroup label="Perros">
<option ng-repeat="p in perros" value="{{p.name}}">{{p.label}}</option>
</optgroup>
<optgroup label="Gatos">
<option ng-repeat="g in gatos" value="{{g.name}}">{{g.label}}</option>
</optgroup>
</select>
</div>
解决方案
推荐阅读
- assembly - MIPS - 轮数
- r - R中成对距离列表的大距离矩阵(17Gb)
- php - Nginx Web 服务器错误 - 上游从上游读取响应标头时发送的标头太大
- python - 使用 if 语句添加切换按钮
- python-3.x - 我的scrapy webscraper 只返回最后的报价
- javascript - 如何检查我的谷歌分析是否正在使用 chrome 扩展程序?
- angular - 由于 IVY 导致的 Angular 8 到 9 升级问题
- c# - C# 中的异常未按预期运行
- vba - 将多个工作簿中的某些单元格 C&P 到 1 个文件中
- html - 在成功的ajax响应中加载模态html