Alpine.js Playground
Examples Newsletter

Magic Properties on `this`

Copied!

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

        

💥 Subscribe for Early Access to the Alpine.js Handbook 📖 💥