Skip to content

Commit

Permalink
fix(module:badge): NG0955 warning in nz-badge-sup component (#8858)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoss54 authored Nov 7, 2024
1 parent d28876c commit cc52555
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/badge/badge-sup.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
ChangeDetectionStrategy,
Component,
Input,
numberAttribute,
OnChanges,
OnInit,
SimpleChanges,
TemplateRef,
ViewEncapsulation,
numberAttribute
ViewEncapsulation
} from '@angular/core';

import { zoomBadgeMotion } from 'ng-zorro-antd/core/animation';
Expand Down Expand Up @@ -81,7 +81,10 @@ export class NzBadgeSupComponent implements OnInit, OnChanges {
constructor() {}

generateMaxNumberArray(): void {
this.maxNumberArray = this.nzOverflowCount.toString().split('');
this.maxNumberArray = this.nzOverflowCount
.toString()
.split('')
.map((value: string, index: number) => `${value}-${index}`);
}

ngOnInit(): void {
Expand Down

0 comments on commit cc52555

Please sign in to comment.