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

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>

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

1 Like

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