I am having trouble implementing a timeline and changing the color when clicking on different states. Can anyone help me figure out what the issue is or how I can achieve this?
I intended to give each state a different color, but sadly, it didn't work out as planned.
Below is an image showing the desired outcome.
Thank you in advance.
HTML
<ul>
<li [ngClass]="priority['isComplete']?'complete':''" *ngFor="let priority of Priorities; let p = index;" (click)="changeTimeline(priority.id)">{{priority.id}}</li>
</ul>