frameable / el

Minimal JavaScript application framework / WebComponents base class
MIT License
249 stars 10 forks source link

How to support two-why binding? #10

Closed rvt closed 1 month ago

rvt commented 1 month ago

Hey,

I am using your project to run a UI on a embedded device, so smaller is better in terms of code size.

But I have a question, if I create a component with some functionality, how do I communicate a change back into the calling component?

<my-item selected="${store.theitem}"> </main-todo>

And when I update 'selected' in the 'my-item' component, the change is not seen. What way to I have to reflect changes?

The example code uses a 'story', and I can see that this would work, but it's also one giant javascript code, something I do not have because of the seperate modules..