Question · Vue.js course · Module 5: Events & Forms
Inline handler in Vue
Which code correctly increments a counter on click?
Answer options
- <button click="count++">
- <button @click="count = count + 1()">
- <button v-click="count++">
- <button @click="count++">
You can check the correct answer by solving this task in the CodeWorlds game.