I'm currently using the newest version of Angular and I am attempting to utilize the Angular materials mat-badge feature to show the number of touchdowns a player has thrown. However, in Chrome, the badge position seems to shift when the number is incremented, whereas in Firefox, the badge remains in the desired position.
Below is the HTML code snippet:
<p>Touchdowns<span matBadge="{{touchdowns}}" matBadgeOverlap="false"></span></p>
<button (click)="addTouchdown()">Score Touchdown<button>
And here's the corresponding TypeScript code:
this.touchdowns:number = 0;
addTouchdown(){
this.touchdowns++;
}
No additional styling has been implemented, only the standard angular styling is being utilized.