mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
1748c8984c
This commit also introduces the usage of signal forms on adev
(cherry picked from commit 15308149db)
11 lines
272 B
HTML
11 lines
272 B
HTML
<select
|
|
[attr.id]="id()"
|
|
[attr.name]="name()"
|
|
[value]="value()"
|
|
(change)="setOption($any($event.target).value)"
|
|
>
|
|
@for (item of options(); track item) {
|
|
<option [value]="item.value" [selected]="value() === item.value">{{ item.label }}</option>
|
|
}
|
|
</select>
|