How to return the position of my checkbox?

#1

Hello,

I would like to get the line where the checkbox is when I click on it.

HTML

<ion-row *ngFor="let ph of phrase">
      <ion-col class="{{ph.class}} col"><p>&nbsp; {{ph.contenu}}</p></ion-col>
      <ion-col class="{{ph.class}} col colCenter"><ion-checkbox id="C1" (click)="getLine('{{ph.line}}');"></ion-checkbox></ion-col>
      <ion-col class="{{ph.class}} col colCenter"><ion-checkbox id="C2"></ion-checkbox></ion-col>
      <ion-col class="{{ph.class}} col colCenter"><ion-checkbox id="C3"></ion-checkbox></ion-col>
      <ion-col class="{{ph.class}} col colCenter"><ion-checkbox id="C4"></ion-checkbox></ion-col>
      <ion-col class="{{ph.class}} col colCenter"><ion-checkbox id="C5"></ion-checkbox></ion-col>
    </ion-row>

TS

  public getLine(line : string){
    alert(line);
  }

But the app tells me : “Error : Got interpolation ({{}}) where expression was expected…”
I don’t really understand what is the way to get back the line stocked into ph with an other method.

Thank you by advance for any help.