I'm trying to replace the checkbox with an image. This image will change based on css class whether or not it's checked. Adding a class doesn't work on change of checked because it changes all of the icons in the column. I'm using ion-checkbox for my checkbox. Doing ion-checkbox:checked does not work either in css.
A look at the images below I would like to replace the pin icon with the checkbox and when it's checked the class changes the icon to a red color and changes one of them, not all.
HTML
<tr *ngFor="let object of array">
<td>
<fa name="map-marker" [ngClass]="pinIcon ? 'unclick-pin' : 'click-pin'"></fa>
<ion-checkbox (ionChange)="selectTwo(object, $event.checked)"></ion-checkbox>
</td>
</tr>
TS
selectTwo(object, isChecked: boolean){
this.pinIcon = !this.pinIcon;
}

