On my list, I have caret icons displayed on the left side which should change when clicked. Clicking on one icon should trigger a change in all other icons as well.
<div class="caret" *ngIf="summary.isSupervisor" style="position: absolute; left: 15px; cursor: pointer;" (click)="openSubordinateInfo(i, summary)">
<i class="zmdi zmdi-caret-right" style="vertical-align: middle;"></i>
</div>
detailedInfo = [];
subordinateInfo;
openSubordinateInfo(i, summary) {
this.subordinateInfo = summary;
if (this.detailedInfo[i]) {
this.detailedInfo[i] = false;
$(".caret i").toggleClass("zmdi-caret-down zmdi-caret-right");
} else {
this.detailedInfo[i] = true;
$(".caret i").toggleClass("zmdi-caret-right zmdi-caret-down");
}
}