Skip to content

How to obtain elements outside the scope? #8444

Answered by hunger
xjy12345654 asked this question in Q&A
Discussion options

You must be logged in to vote

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 be fo_input, which binds the two values together even across component boundaries. Then I use a changed 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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@xjy12345654
Comment options

@hunger
Comment options

hunger May 19, 2025
Collaborator

Answer selected by xjy12345654
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants