-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
From this Stack Overflow question — it might be nice if there was a way to get a reference to the host element, when compiling to custom elements (i.e. the <my-thing> for tag="my-thing").
Following the precedent set by $$props, we could add a $$host value. The main question is what should happen when not compiling as a custom element — error? or reference to the instance (which we've resisted thus far, because 99% of the time when someone wants that reference it's to do something inadvisable)?
valqelyan, lsimichael, benbenbenbenbenben, agat, linorabolini and 27 more