...

/

Reference Keyed Elements: $refs

Reference Keyed Elements: $refs

Learn to retrieve elements referenced with x-ref by using $refs.

We'll cover the following...

The $refs property

The $refs property is a magic property that’s used to access elements marked with the x-ref directive. While x-ref gives identity to elements in an AlpineJS component, $refs helps us to retrieve those elements.

Access this course and 1400+ top-rated courses and projects.