<ul>
<li (click)="ChangeColor($event)">ONE</li>
<li (click)="ChangeColor($event)">TWO</li>
<li (click)="ChangeColor($event)">THREE</li>
</ul>
ChangeColor(e){
e.srcElement.style.color="blue"
}
In the list above, when any of the li items are clicked out of the three options, the color of the clicked label should change to blue. When another item is clicked, all item colors should revert back to their original and only the current clicked item's color changes.