/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components-examples/material/select/select-overview/select-overview-example.html
20 строк
557 B
Kristiyan Kostadinov
docs(multiple): switch docs examples to new control flow
06 ноя 2023, 18:51
06 ноя 2023, 18:51
99b62ba
Код
Авторство
О чём код?
<h4>Basic mat-select</h4> <mat-form-field> <mat-label>Favorite food</mat-label> <mat-select> @for (food of foods; track food) { <mat-option [value]="food.value">{{food.viewValue}}</mat-option> } </mat-select> </mat-form-field> <h4>Basic native select</h4> <mat-form-field> <mat-label>Cars</mat-label> <select matNativeControl required> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> </mat-form-field>