Skip to content

Commit c4d2f81

Browse files
fix(module:progress): fix NG0956 error (NG-ZORRO#8962)
1 parent 79cc2f8 commit c4d2f81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/progress/progress.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const defaultFormatter: NzProgressFormatter = (p: number): string => `${p}%`;
9191
<!-- normal line style -->
9292
@if (isSteps) {
9393
<div class="ant-progress-steps-outer">
94-
@for (step of steps; track step) {
94+
@for (step of steps; track $index) {
9595
<div class="ant-progress-steps-item" [style]="step"></div>
9696
}
9797
<ng-template [ngTemplateOutlet]="progressInfoTemplate" />
@@ -137,7 +137,7 @@ const defaultFormatter: NzProgressFormatter = (p: number): string => `${p}%`;
137137
@if (isGradient) {
138138
<defs>
139139
<linearGradient [id]="'gradient-' + gradientId" x1="100%" y1="0%" x2="0%" y2="0%">
140-
@for (i of circleGradient; track i) {
140+
@for (i of circleGradient; track $index) {
141141
<stop [attr.offset]="i.offset" [attr.stop-color]="i.color"></stop>
142142
}
143143
</linearGradient>
@@ -152,7 +152,7 @@ const defaultFormatter: NzProgressFormatter = (p: number): string => `${p}%`;
152152
[attr.d]="pathString"
153153
[style]="trailPathStyle"
154154
></path>
155-
@for (p of progressCirclePath; track p) {
155+
@for (p of progressCirclePath; track $index) {
156156
<path
157157
class="ant-progress-circle-path"
158158
fill-opacity="0"

0 commit comments

Comments
 (0)