mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Migrated the input, output and queries to reactive APIs for better support of zoneless. PR Close #58425
10 lines
235 B
HTML
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>
|