0

我正在使用AngularJS typeahead,我用它进行了自动完成输入,使用自定义模板(添加照片和我正在输入的人的姓名)并且它工作正常。

<input ng-model="data.friend"
       typeahead="recipient as recipient.Name for recipient in loadStudents($viewValue)"
       typeahead-template-url="/Content/js/inbox/partials/typeaheadTemplate.html"
       typeahead-wait-ms="300"
       typeahead-editable="false"
       typeahead-min-length="1"
       type="text" class="col_100 input radius2x transition boxsizing"
       auto-focus />

但现在我需要它为不止一个人服务,这意味着一个类似标签的系统。我如何使用 Angular 预先输入来做到这一点?

4

0 回答 0