angular - 如何使组合框可编辑?
问题描述
我有一个组合框,我想让它可编辑,并根据用户输入的字符向用户提供建议。到目前为止,这是我的代码:
<mat-form-field appearance="outline" class="width-1">
<mat-label>Type of Operation</mat-label>
<mat-select
formControlName="typeOperation"
placeholder="Type of Operation"
required
>
<mat-option
*ngFor="let item of operationTypes"
[value]="item.value"
>
{{ item.label }}
</mat-option>
</mat-select>
</mat-form-field>
解决方案
推荐阅读
- linux - 编译内核模块时没有规则使目标“lib/sha256.c”错误
- docker - Docker 登录:手动登录私有注册表时出错
- sql - 没有聚合的 SQL Pivot - 重复条目
- c# - 动态创建的事件处理程序事件未在多视图中触发
- perl - 不能在没有包或对象引用的情况下调用方法“import”
- hadoop - 如何管理由于将流数据插入 Hive 而创建的小文件?
- powershell - 使用 Powershell 运行 .cmd 文件
- c - 切换 vs if ... else if ... else
- arduino - esp8266中创建的mdns服务无法浏览
- android - 如何在活动中设置片段并在recyclerview中添加cardview