Bonjour,
Mon html
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <td mat-cell *matCellDef="let row"> <mat-slide-toggle class="slide-toggle-1" [checked]="row.notificationTypes && row.notificationTypes.includes('EMAIL')" (change)="onMail(row)" title="Être également notifié par e-mail"> <span class="is-visuallyHidden">Être également notifié par e-mail</span> </mat-slide-toggle> </td>
Mon component Angular
Je souhaite qu'à l'appel de (change)="onMail(row)", passer aussi la variable row dans getData(subscriptions: Subscription[]).
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 ngOnInit(): void { this.dataSource = this.getDataSource(notification.body.result as Subscription[]); } getData(subscriptions: Subscription[]) { const rows: JournalRow[] = []; return new DataRow(rows); } onMail(row: JournalRow) { console.log("ROW===" + row); }
Merci d'avance pour votre aide
Partager