badge is added

This commit is contained in:
병준 박 2019-10-17 11:06:02 +09:00
parent 94dcd79055
commit a342dda830
2 changed files with 9 additions and 1 deletions

View File

@ -14,7 +14,13 @@
</mat-tab>
<mat-tab>
<ng-template mat-tab-label>
<mat-icon>chat</mat-icon>
<mat-icon
matBadge="22"
matBadgeDescription="확인하지 않은 메시지가 있습니다."
matBadgeColor="accent"
matBadgePosition="above after"
>chat</mat-icon
>
</ng-template>
<app-layout-chat-left-sidenav-chat></app-layout-chat-left-sidenav-chat>
</mat-tab>

View File

@ -3,6 +3,7 @@ import { CommonModule } from '@angular/common';
import { FlexLayoutModule } from '@angular/flex-layout';
import { MatBadgeModule } from '@angular/material/badge';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatDialogModule } from '@angular/material/dialog';
@ -30,6 +31,7 @@ import { DIALOGS } from './dialogs';
CommonModule,
FlexLayoutModule,
DragDropModule,
MatBadgeModule,
MatButtonModule,
MatCardModule,
MatDialogModule,