The Badge delivers the
BadgeContainer component that enables you to target text, HTML elements, or Angular components which cannot host content.
To implement the functionality, wrap both the targeted element and the Badge inside a
When you use the Badge without the
BadgeContainer, make sure that the CSS position of the HTML element or Angular component which contains a badge is different from
The following example demonstrates both approaches in action.