badge/src/badge/badge.component.ts
Badges are small status descriptors for UI elements. A badge consists of a small circle, containing a number, that appears in proximity to another object.
If you're looking to add a Badge to an Icon or Button component, check the Overlay Badge component.
Example :<talenra-badge counter="45" />import { BadgeComponent } from '@talenra/components/badge';| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | talenra-badge |
| imports |
CounterPipe
|
| styleUrls | ./badge.component.scss |
| templateUrl | ./badge.component.html |
Inputs |
| counter |
| Required : true |
Default value : { transform: numberAttribute }
|
|
The actual counter value |