Closed warpech closed 5 years ago
@alshakero can you think of what would be the consequences of this? I can think of at least now:
In the source code of HTML compositions that is allowed to use data binding, you will obviously want to use things like dom-if
. The popup composition editor will mess things up, because it considers innerHTML
to be equivalent of the source code, while it is not. For example, you want <template is="dom-if">
in the source code, but not the stamped result of it.
Can you work on initial implementation:
innerHTML
of shadow root (this also solves problem https://github.com/Starcounter/RebelsLounge/issues/388)Preferably in two separate PRs.
On the Group One meeting 2018-12-19 it was decided that we will not implement this, for the following reasons:
The implementation of the atoms (https://github.com/Starcounter/RebelsLounge/issues/395) should reduce the need for data binding in the custom compositions.
However, the view of individual atom, could be changed with pro-blending-editor. There solution owner/designer could use data binding with model and semantics data, as well as, light and shadow DOM.
Consider binding to the data within compositions. This will be useful to create conditional compositions, etc.