-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recommended method of building portable contained reactive components? #83
Comments
It appears that Mikado mounts listeners on the window object (the root of all listeners) and so events won't know what component to go do. (See src/event.js:391). Mikado needs to be changed to mount the listener on the base of each component. |
I don't understand what you are trying to do. For reactive approach Mikado gives you 2 possibilities: 1. using reactive property notation within template expression and also optionally 2. using observable array. For web components there is explanation in the Readme. None of them was used. Can you explain me what is your goal? You can give me some example of how the final result should look like but without giving the imlementation, just the result is important to me. I don't understand your example above, also I'm pretty sure that this could be solved better, when I'm understand what you need. |
|
@john5000 I will add a new feature binding delegation listeners to the shadow root when used. |
@hsnoil Probably I understand your example, the confusing part is the use of |
@ts-thomas I know one can just do Also, a side note did you see my other post about how things come out as |
Many frameworks have methods of building portable components before the webcomponent spec, what is the recommended way to do this with Mikado?
What I came up with is something like this (though it feels like I am hacking around the foreach and I'd have to do an app.render(data) on every change, is there a better way?):
index.html
main.js
template/app.html
template/form.html
template/textbox.html
The text was updated successfully, but these errors were encountered: