Skip to content

Commit

Permalink
fix(module:progress): fix NG0956 error (#8962)
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperLife1119 authored Jan 9, 2025
1 parent 79cc2f8 commit c4d2f81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/progress/progress.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const defaultFormatter: NzProgressFormatter = (p: number): string => `${p}%`;
<!-- normal line style -->
@if (isSteps) {
<div class="ant-progress-steps-outer">
@for (step of steps; track step) {
@for (step of steps; track $index) {
<div class="ant-progress-steps-item" [style]="step"></div>
}
<ng-template [ngTemplateOutlet]="progressInfoTemplate" />
Expand Down Expand Up @@ -137,7 +137,7 @@ const defaultFormatter: NzProgressFormatter = (p: number): string => `${p}%`;
@if (isGradient) {
<defs>
<linearGradient [id]="'gradient-' + gradientId" x1="100%" y1="0%" x2="0%" y2="0%">
@for (i of circleGradient; track i) {
@for (i of circleGradient; track $index) {
<stop [attr.offset]="i.offset" [attr.stop-color]="i.color"></stop>
}
</linearGradient>
Expand All @@ -152,7 +152,7 @@ const defaultFormatter: NzProgressFormatter = (p: number): string => `${p}%`;
[attr.d]="pathString"
[style]="trailPathStyle"
></path>
@for (p of progressCirclePath; track p) {
@for (p of progressCirclePath; track $index) {
<path
class="ant-progress-circle-path"
fill-opacity="0"
Expand Down

0 comments on commit c4d2f81

Please sign in to comment.