Selecting multiple items


I have list which I’d like to click on an item to select it. If item is selected it should be deselected. I’m really new to Ionic2 / Angular2 architecture, so what would be the ‘correct’ way to go here?

Selecting would change the color of item and change string value in related item object.

I started by creating a directive for this, but was wondering if that is the easiest road here. Heres my html piece which is basically angular 2 tutorial project:

        <button [selectedItem]="color" [state]="e.status" [defaultColor]="'green'" ion-item *ngFor="#e of displayItems" (click)="onItemClick(e)">  
1 Like

Hi, I have the same issue :frowning: