Demonstrating $el, $refs, and $root
You are viewing the Entire Campus ($root element)
Manipulating the element you interact with.
$el refers to the DOM element that the directive is on. Here, clicking a building highlights itself.
Accessing specific elements by name.
$refs gives you access to elements marked with x-ref. Find a specific facility from the "Info Kiosk".
Info Kiosk
Manipulating the component's root element.
$root refers to the top-level element of the Alpine component (the one with x-data).
Use the campus-wide controls below.