expose icon color property (#4248)

This commit is contained in:
Denys Vuika
2019-02-04 10:53:12 +00:00
committed by GitHub
parent aa2036dddd
commit cf922dd46e
3 changed files with 8 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
<ng-container *ngIf="isCustom; else: default">
<mat-icon [svgIcon]="value"></mat-icon>
<mat-icon [color]="color" [svgIcon]="value"></mat-icon>
</ng-container>
<ng-template #default>
<mat-icon>{{ value }}</mat-icon>
<mat-icon [color]="color">{{ value }}</mat-icon>
</ng-template>