默認列印是:
<div >
<input
id="typeahead-config"
type="text"
[(ngModel)]="model"
[ngbTypeahead]="search"
formControlName="searchText"
[resultFormatter]="formatter" [inputFormatter]="formatter"
/>
</div>
我如何使用{{item.name}} {{item.somevalue}} <-- 這個模板?
我需要在<b></b>和<i></i>標簽中列印一些值。謝謝!
uj5u.com熱心網友回復:
@skouch2022 是對的。
<ng-template #rt let-r="result" let-t="term">
your somevalue: <b>{{r['id']}}</b> <-- your b or i tag
<ngb-highlight [result]="r.name" [term]="t"></ngb-highlight>
</ng-template>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/455187.html
標籤:有角度的 ng-bootstrap 打字头
下一篇:角度選擇所有分頁問題
