I need to integrate an external component written in Vue.js that contains multiple buttons. How can I specifically target and capture the click event of a particular button called firstButtonClick()
within this external component?
Here is how the ExternalComponent looks:
<button
class="first-button"
@click="firstButtonClick(firstButtonParam)"
>
</button>
<button
class="second-button"
@click="secondButtonClick(secondButtonParam)"
>
</button>
In my own MyComponent, I have integrated the ExternalComponent like this:
<ExternalComponent
:prop1="prop1"
:prop2="prop2"
...:
/>