as shown in the picture, I want to achieve a font selection effect, and the font data is obtained from the background. I used ngFor loop display, but I need to use ng-selected to select fonts. I don"t know how to use ngFor to combine ng-selected. The code is as follows
<select id="fontstyle" name="fontstyle" class="selectpicker"(change)="setFont($event.target.value);">
<option *ngFor="let item of dto.fontStyles" [value]="item.font">{{item.name}}</option>
</select>
it is not clear how to implement ng-selected. Please consult the platform god
.