Open tomalec opened 4 years ago
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
π Provide a description of requested docs changes
...at least to me. After reading
I still am not sure how do those two work.
A.bind( 'propFoo' ).to( B, 'propBar')
binds one way or both ways?Where are the docs for
to
andtoMany
? https://ckeditor.com/docs/ckeditor5/latest/framework/guides/deep-dive/observables.html#property-bindings says:No links and there is nothing I can find neither for "bind chain", "to", nor "toMany". (Besides, https://ckeditor.com/docs/ckeditor5/latest/api/module_ui_template-BindChain.html which probably is unrelated and just confusing).
Browsing through the code is hard for a keyword like "to", https://github.com/ckeditor/ckeditor5-utils/blob/master/src/observablemixin.js#L369-L372 still gives me only a circular reference and no clue ;)
A.bind( 'initial' ).to( B, 'name', (name) => name[0])