Vue Events

Events in Action

Result: {{ counter }}

Your Name: {{ confirmedName }}

In the above example, The add button works as normal. The subtract button should only work on right-clicks. The name can only be submitted on clicking 'Enter'. and the 'Submit' button has a 'prevent' modifier which keeps the page from reloading and state should remain the same.