Dynamically generating ion-item-options buttons


#1

I am building an app with Ionic 2 rc.4. I want to dynamically generate buttons for the ion-item-options. I’m assuming it would look something like this

<ion-item-options side="left">
   <button ion-button *ngFor="let option of leftOptions" color="option.class">
        <ion-icon name="option.icon"></ion-icon>
    </button>
</ion-item-options>

This does not work. No options appear. Does anyone know why?

**Just kidding. I had a typo!