Skip to content

feat(select): Allow simpler definition of option template #134

@trevordaniels

Description

@trevordaniels

Instead of:

<sui-select [optionTemplate]="myTemplate">
   <sui-select-option *ngFor="let option of [0,1,2]" [value]="option"></sui-select-option>
</sui-select>

<ng-template let-option #myTemplate>
   {{option + ' years'}}
</ng-template>

could it be possible to have:

<sui-select>
    <sui-select-option *ngFor="let option of [0,1,2]" [value]="option">{{option + ' years'}}</sui-select-option>
</sui-select>

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions