Ion-item dynamic color change

Hi,

It’s a bit hard to explain but i’ll try best.

I have a sidemenu, i’m trying to change the background color of the ion-item’s page i’m on.

Exemple :

<ion-list>
   <ion-item menu-close ng-click="function()" class="myclass">First item</ion-item>
   <ion-item menu-close ng-click="function()" class="myclass1">Second item</ion-item>
   <ion-item menu-close ng-click="function()" class="myclass1">Third item</ion-item>
</ion-list>

If i select the item “first item”, the next time i reopen the sidemenu i want this item’s color changed. And when i select the 'second item" the first item back its color, and the second one changes

Sorry for my english still learning ! :grinning: