🖱️x-on:click

Overview

Attach a click event listener to the element.

Example

<button x-on:click="count++">Increment</button>

Live Demo

Last updated