Ionic v2 - How to change ion-card-content background using ng-repeat


#1

I have to change color of ion-card-content using below code but did not get it.

 <ion-card *ngFor="let p of notes">
      <ion-card-content style="background-color: {{p.bgcolor}}">
         <div [innerHTML]="p.data"></div>
      </ion-card-content>
</ion-card>

#2

[style.background-color]="p.bgcolor"


#3

Wow. Working. Thanks a lot. Where i can find?