knockout / tko

🥊 Technical Knockout – The Monorepo for Knockout.js (4.0+)
http://www.tko.io
Other
274 stars 34 forks source link

Support open shadowdoms #46

Open jogibear9988 opened 6 years ago

jogibear9988 commented 6 years ago

support datacontext in open shadowdoms (https://blog.revillweb.com/open-vs-closed-shadow-dom-9f3d7427d1af)

jogibear9988 commented 6 years ago

Maybe we should set an attribute or property at the custom element, to tell knockout that it should bind also to the shadowdom!

brianmhunt commented 6 years ago

Yeah I’m mulling where this dynamism should happen.

jogibear9988 commented 6 years ago

at the moment, i create a propery on each component i write, wich i bind to $data! and if the property changes, i rebind the shadowdom! but I don‘t like that, cause I‘ve to do that in each component...

jogibear9988 commented 6 years ago

It would also be cool if you could include these https://github.com/knockout/knockout/issues/2144 and https://github.com/knockout/knockout/issues/2144 somehow in tko