How to separate one click event from another?

I have a card with two buttons. Tap on the card itself should open details page:

<ion-card *ngFor="let appointment of appointmentList"

          <ion-item text-wrap>
            <ion-icon start name="ios-medkit-outline"></ion-icon>
            <ion-col width-50>
              <button full ion-button color="secondary" (click)="confirmTrip()"> Confirm</button>
            <ion-col width-50>
              <button full ion-button color="danger" (click)="cancelTrip()"> Cancel</button>
          <ion-item *ngIf="!(appointment.Legs[0].AppTime==='')">
              Appointment time
            <ion-badge item-right>

          <ion-item *ngIf="!(appointment.Legs[0].PickUpTime==='')">
              Pick up time
            <ion-badge item-right> {{appointment.Legs[0].PickUpTime}}</ion-badge>

              Driver status
            <ion-badge item-right>{{appointment.Legs[0].Status}}</ion-badge>


Click on buttons should fire separate actions. Now, clicking on the button leads to showing details page AND these specific actions. Is there any mechanism to separate buttons click from other part of the card?

The only way out as far as I know is to have a link at the bottom of the card

Does it help if you use (click)="confirmTrip($event)" and then confirmTrip(click) { click.stopPropagation(); ... ?

1 Like

Help me here, please: InAppBrowser Insert CSS by File not Working

Yes, this was solution, thank you. SO