<ng-select
  [items]="icons"
  bindLabel="name"
  (change)="onSelect($event)"
  [(ngModel)]="selectedIcon"
  bindValue="icon"
  placeholder="Select an icon"
>
  <ng-template ng-option-tmp let-item="item">
    <i [ngClass]="item.icon"></i> {{ item.name }}
  </ng-template>
</ng-select>
