【发布时间】:2018-11-27 22:57:50
【问题描述】:
我想将标题修复为角度自动完成我该怎么做 here is image what i want
【问题讨论】:
-
您能否指定您正在使用的组件库并提供更多详细信息,例如代码示例
标签: angular autocomplete
我想将标题修复为角度自动完成我该怎么做 here is image what i want
【问题讨论】:
标签: angular autocomplete
为了创建这个 ui 将下面的 div 添加到输入框,在该 div 中添加 ngfor 循环,在文本更改过滤器数组上显示下面的数组到文本框
以下是实施思路
<div> <!-- parent div -->
<div>
<input type="text"> <!-- add event on change and on change filter the array show the array in below div -->
</div
<div *ngFor="let item of items"> <!-- this div must be below to input box -->
<div>item</div><button>Add</button> <!-- on click event add your logic after adding change the text of button -->
</div>
</div>
【讨论】: