0 votes
in VueJS by

What is the syntax to invoke the method handleUserClick when the user clicks a button?

select the correct option from below

a)<button v-on:click=”handleUserClick”>Click Me!</button>

b)<button :click=”handleUserClick”>Click Me!</button>

c)Both the options

d)None of the options

1 Answer

0 votes
by

a)<button v-on:click=”handleUserClick”>Click Me!</button> is the syntax to invoke the method handleUserClick when the user clicks a button

...