How To Highlight The Option Selected In And Tag In Angular 5
I have 2 tags, when I click on the drop panel it gives various options to select, by default one value is selected but when I open the drop panel it is not highlighting the previou
Solution 1:
The definition of the select should be like this:
<ng-select
[items]="filterJSONData"
bindLabel="{{content}}" bindValue="{{val}}"
[(ngModel)]="filterSelected">
<ng-template ng-option-tmp let-item="item" let-search="searchTerm">
<div [ngOptionHighlight]="search">{{ item.content }}</div>
</ng-template>
</ng-select>
When you type a text in the select, the matches values are displayed underline.
Post a Comment for "How To Highlight The Option Selected In And Tag In Angular 5"