How to call parent function when click previous button

I want to call the parent function when going to the previous button. The previous button has defaultHref attr as the path.
If anyone can help me, I will be very happy.

What are you using Vue, Angular, or React? also, it would be great if you could share sample code

Thanks for your reply. I am using Angular.

What do you mean by “parent function”? If you are talking about a situation where you want to call a method in component B from inside component A, you have a design problem.

1 Like