【发布时间】:2017-09-12 18:03:09
【问题描述】:
我正在使用 Angular 4,我想将一个列表传递给 html。 在角度 4 中,我拥有的组件是:
a = ["abc", "xyz", "lmn"]
在 html 方面:
<input type="text" data-provide="typeahead" data-source='["abc","xyz","lmn"]' placeholder="item..." class="form-control" />
我必须在数据源中传递列表,它是一个 Bootstrap-3-Typeahead js 对象。
如何将它与 angular 4 一起使用
【问题讨论】:
标签: angular angular2-template bootstrap-typeahead