Alpine.js Playground

Alpine.js Magic Properties on this

tl;dr of the table (as of Alpine.js v2.3.x): $el, $refs, $nextTick and $watch are accessible from handlers for every directive (except x-data).

See the full post on How to Access Alpine.js Magic Properties from inline handlers and function/component methods

Get access to more Alpine.js content by purchasing Alpine.js Knowledge Base Membership

Hook Magic property Presence