mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(select): allow extra content to be projected after label in mat-optgroup (#13396)
Allows for consumers to project extra content into the label of `mat-optgroup`. Currently any content that isn't a `mat-option` won't be rendered. Fixes #11489.
This commit is contained in:
committed by
vivian-hu
parent
d58db5d147
commit
cb5b15e63c
@@ -1,2 +1,2 @@
|
||||
<label class="mat-optgroup-label" [id]="_labelId">{{ label }}</label>
|
||||
<label class="mat-optgroup-label" [id]="_labelId">{{ label }} <ng-content></ng-content></label>
|
||||
<ng-content select="mat-option, ng-container"></ng-content>
|
||||
|
||||
Reference in New Issue
Block a user