How to call angular function when click p-dialog close(X) button?
I have searched and just tried this
(onHide)="cancel()"
. But it's not working. Kindly share your solutions.
I know we can use a close/cancel
button to hide the popup. But in my scenario I want to call an event when clicking the (X) button click.
Actually (onHide)="cancel()"
works fine according to this Plunkr.
Try: (click)="cancel()" instead.
I had the same error but I solved it by using the click method. Grettings :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With