I have a toggle switch (on/off) button which i have kept in every row of my table. I want to capture the toggle on and off of every row's button so i can filter based on the results of on/off. Is it possible, if yes then how. I have the switch from custom based client provider which provides me options such as
checked: boolean,checkedLabel:string,disabled:boolean,name:string, and toggleSwitch:event emitter.
<ng-container *ngFor="let data of displayData$ | async;let i = index">
<tr class= "row-break">
<td>
<a>{{data.value1}}</a>
</td>
<td>
{{data.value2}}
</td>
<cm-toggle-switch [(ngModel)]="formModel.state[i]" toggleSwitchChange="toggle($event)" [checked]="true" ></cm-toggle-switch>
</tr>
</ng-container>