Repetly add button with each picture


#1

I have a ion-list thats look like this:

<ion-content padding>
  <ion-list>
    <ion-row>
        <img [src]="post.imgUrl" class="img" *ngFor="let post of posts | async" (click)="goToDetailPage(post)">
      </ion-row>
  </ion-list>
</ion-content>

I want to add a “like” button for each picture that shows up?

How can i do that? im really new to ionic so helpful for all concret answer. Thanx yall


#2

You should go through the structural directive documentation.