How to know which p-dropdown has triggered the event

I’ve two p-dropdowns inside a formGroup and both are calling the same generic method. <!– Fruit List –> <p-dropdown (onChange)="callMethod($event)" … > </p-dropdown> <!– Vegetable List –> <p-dropdown (onChange)="callMethod($event)" … > </p-dropdown> Notice that both are calling the same callMethod method. How can I distinguish between these two dropdowns inside my method. I didn’t get… Read More How to know which p-dropdown has triggered the event

primeng tree table with checkbox not working as expected if a page contains more than one tree table

I am working on angular app. I am using tree table <p-toast></p-toast> <h5>Checkbox Selection</h5> <p-treeTable [value]="files5" [columns]="cols" selectionMode="checkbox" [(selection)]="selectedNodes3" dataKey="name" > <ng-template pTemplate="caption"> <div class="p-d-flex"> <p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox> <span class="p-ml-2">Toggle All</span> </div> </ng-template> <ng-template pTemplate="header" let-columns> <tr> <th *ngFor="let col of columns"> {{ col.header }} </th> </tr> </ng-template> <ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-columns="columns" > <tr> <td *ngFor="let… Read More primeng tree table with checkbox not working as expected if a page contains more than one tree table