/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components-examples/material/chips/chips-template-form/chips-template-form-example.html
21 строка
737 B
Kristiyan Kostadinov
docs(material/chips): clean up forms examples (#33185)
01 май 2026, 14:39
Не верифицирован
01 май 2026, 14:39
7798bb7
Код
Авторство
О чём код?
<section> <h4>Chips inside of a Template-driven form</h4> <mat-form-field class="example-form-field"> <mat-label>Video keywords</mat-label> <mat-chip-grid #templateChipGrid aria-label="Enter template form keywords" [(ngModel)]="keywords"> @for (keyword of keywords(); track keyword) { <mat-chip-row (removed)="removeKeyword(keyword)"> {{keyword}} <button matChipRemove [attr.aria-label]="'remove template form' + keyword"> <mat-icon>cancel</mat-icon> </button> </mat-chip-row> } </mat-chip-grid> <input placeholder="New keyword..." [matChipInputFor]="templateChipGrid" (matChipInputTokenEnd)="addKeyword($event)" /> </mat-form-field> </section>