How does event handling work in Vue.js?

Event handling is done using v-on or @ shorthand, binding events like click to methods. Example: <button @click="greet">Click Me</button> triggers the greet method.