td-notification-count
element renders a number of notifications.
Import the [CovalentNotificationsModule] in your NgModule:
import { CovalentNotificationsModule } from '@covalent/core/notifications'; @NgModule({ imports: [ CovalentNotificationsModule, ... ], ... }) export class MyModule {}
Example for HTML count usage:
<td-notification-count positionX="after" positionY="top" [notifications]="1"> <mat-icon>notifications</mat-icon> </td-notification-count>
Example for HTML no count usage:
<td-notification-count positionX="after" positionY="top" [notifications]="true"> <mat-icon>notifications</mat-icon> </td-notification-count>
Example for HTML stand alone count usage:
<td-notification-count positionX="center" positionY="center" [notifications]="1"> </td-notification-count>
Example for HTML limit usage:
<td-notification-count [notifications]="100" [limit]=50> </td-notification-count>