Vue · Junior · Question 8 of 75

How do you listen to a click?

Explanation

The handler can be a method name (@click="save") or an inline statement (@click="count++"). The native event is available as $event in inline handlers.

Further reading

Problem with a question

Vue · Junior · question 8

Test yourself

Take the Vue · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz