@Deepak1233 wrote:
I have a situation where i have multiple records and i used in that *ngFor loop , so per record there is one button And I am trying to do is onclick change background of button so that it looks alike it is clicked
<div class="main" *ngFor="let data of fetched_info; let i=index"> <ion-grid no-padding no-margin> <ion-row no-padding no-margin class="row"> <ion-col col-4 no-padding no-margin> <button ion-button small icon-start color="secondary" outline (click)="shortlist($event,data[i].username)" class=""> <ion-icon ios="ios-star-outline" md="md-star-outline"></ion-icon> Shortlist </button> </ion-col> </ion-row> </ion-grid> </div>
onclick of shortlist() function i want to make it happen
Posts: 1
Participants: 1