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:
Kristiyan Kostadinov
2018-10-04 18:57:33 +02:00
committed by vivian-hu
parent d58db5d147
commit cb5b15e63c
+1 -1
View File
@@ -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>