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 previously selected option.
I tried adding [selected]="filters"
or [ng-selected]="filters"
in <ng-option>
tag, but it is giving me error that it is not a known property of <ng-option>
How can I highlight this option selected in the drop panel?
<ng-select [(ngModel)]="filterSelected" name="in" id="fileterName"
(open)=droppanel() >
<ng-option *ngFor="let opt of filterJSONData" [value]="opt.val" >
{{ opt.content }}
</ng-option>
</ng-select>
Thanks in advance.