</span> <ng-container *ngIf=“isOpen”> <ul *ngFor=“let opt of items”> <li *ngIf=“opt.template else defaultOption”> <ng-container *ngTemplateOutlet=“opt.template; context: { selectedOption, data: opt }”> </ng-container> </li> <ng-template #defaultOption> <li optionItem [value]=“opt.value” class=“org-select__opt”> <i [name]=“opt.icon” class=“org-select__opt-icon”></i> <label class=“org-select__opt-label” >{{opt.label}}</label> </li> </ng-template> </ul> </ng-container> </ng-template> </my-select> <li *ngIf=“opt.template else defaultOption”> <ng-container *ngTemplateOutlet=“opt.template; context: { selectedOption, data: opt }”> </ng-container> </li> <ng-template #defaultOption> <li optionItem [value]=“opt.value” class=“org-select__opt”> <i [name]=“opt.icon” class=“org-select__opt-icon”></i> <label class=“org-select__opt-label” >{{opt.label}}</label> </li> </ng-template> [ { value: ‘v’, label: ‘Volvo’ }, { value: ’s’, template: this.template } ]