I’m in need of a method of taking a property on a model and returning a list of DOM objects, let’s call them, that are bound to that property.
<input type="text" value.bind="MyProperty" />
Is there a way I can run a function like below to retrieve this input?:
I’m aware of ref, but it needs to be more generic than this. The function would also need to be robust enough to know how to cross multiple levels of bindings to reach its ultimate destination. For example, we have many custom components created to handle specific behaviors, like select lists. So much of our markup looks like:
view model (A) property “MyProperty” ->
binds to value on
<custom-select value.bind="MyProperty" > ->
binds to the view model (B) of that custom component value ->
binds to the select list inside that custom component
Would hopefully be able to traverse all the way to that select list contained within the custom component. I know it’s a long shot, but any help is appreciated.