Skip to content

Commit f7e00bc

Browse files
committed
fix(progress): TS2540: Cannot assign to value because it is a read-only property - conflicting on directive composition with ProgressBarDirective
1 parent ad72600 commit f7e00bc

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
---
44

5+
#### `5.5.1`
6+
7+
- fix(progress): TS2540: Cannot assign to `value` because it is a read-only property - conflicting on directive composition with ProgressBarDirective
8+
9+
---
10+
511
#### `5.5.0`
612

713
- chore(dependencies): update to `Angular 20`

projects/coreui-angular/src/lib/progress/progress.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ng-container *ngTemplateOutlet="defaultContent" />
33
} @else {
44
@let pbd = progressBarDirective;
5-
<c-progress-bar [animated]="pbd?.animated()" [variant]="pbd?.variant()" [color]="pbd?.color()" [value]="value()">
5+
<c-progress-bar [animated]="pbd?.animated()" [variant]="pbd?.variant()" [color]="pbd?.color()" [value]="barValue()">
66
<ng-container *ngTemplateOutlet="defaultContent" />
77
</c-progress-bar>
88
}

projects/coreui-angular/src/lib/progress/progress.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class ProgressComponent {
4747

4848
readonly stacked = this.#progressService.stacked;
4949
readonly percent = this.#progressService.percent;
50-
readonly value = this.#progressService.value;
50+
readonly barValue = this.#progressService.value;
5151

5252
readonly contentProgressBars = contentChildren(ProgressBarComponent);
5353

0 commit comments

Comments
 (0)