How to obtain elements outside the scope? #8444
-
` Rectangle {
demo |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is a rather hacky way to do this: The "problem" is the I am abusing a property in Not nice at all, we really should have some better support for this, but at least this should not stop you from making progress now. |
Beta Was this translation helpful? Give feedback.
There is a rather hacky way to do this:
demo
The "problem" is the
if
introducing a new component and getting the information pass into that component from the outside.I am abusing a property in
root
for that and a two-way binding in what used to befo_input
, which binds the two values together even across component boundaries. Then I use achanged
handler to trigger the call (and reset the property).Not nice at all, we really should have some better support for this, but at least this should not stop you from making progress now.