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