Change ion-icon color using click event

How to change a selected icon color inside ngFor on click. i tried using ngclass, but it ended up in changing all the icons in the loop. Please help.


have a look this link i hope its work for you

1 Like