Select all text in input field on click the Vue JS way

Comparing the traditional javascript way with the Vue event you can use.

Traditionally in javascript you would do something like this.

<input onClick="this.select();" value="select me" />

This still works in a Vue app, but you probably want to do something like this to achieve the same.

<input @focus="$event.target.select()" value="select me" />