0

ts:

progress :any = 0;

ngOnInit() { setInterval(() => { this.progress += 1; }, 100)

html:

<mat-progress-bar style="height: 10px" mode="determinate" [value]="progress">
</mat-progress-bar>

this is an animated progress bar and I want to figure out how can I change the color of it after certain period like when the progress bar reaches 70% the color should change to yellow and when it reaches 90% the color should change to red

kian
  • 1,449
  • 2
  • 13
  • 21

0 Answers0