Is there a way to assign an ID to my checkbox element and retrieve it in my .ts file when the checkbox is selected? I want to pass this ID along with the true or false value that indicates if the checkbox is checked. Here's an example code snippet:
<p-checkbox name="reviewed" inputId="reviewed" [(ngModel)]="data.reviewed"
[binary]="true" (onChange)="checkValue(data.reviewed)">
</p-checkbox>
checkValue(event: any){
//here I want to receive the checkbox ID;
console.log(event);
}