angular/adev/shared-docs/components/select/select.component.html
Sheik Althaf 53341a3b8f refactor(docs-infra): use reactive APIs in shared components (#58425)
Migrated the input, output and queries to reactive APIs for better support of zoneless.

PR Close #58425
2024-11-11 14:36:05 +00:00

10 lines
235 B
HTML

<select
[attr.id]="id()"
[attr.name]="name()"
[ngModel]="selectedOption()"
(ngModelChange)="setOption($event)"
>
@for (item of options(); track item) {
<option [value]="item.value">{{ item.label }}</option>
}
</select>