How do I access the bindingContext constructor? #149
-
I am making my own component registration to use shadow-dom in my components. However I can't make a new binding context because the "bindingContext" constructor is not exported in the build. I can't simply copy and paste the constructor because the constructor utilizes symbols. tko/packages/bind/src/bindingContext.ts Line 24 in afaa804 I solved the specific problem I had by using the "extendContextCallback" property in the applyBindings function which was new to me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks @tscpp . Indeed it isn't exported. I think it should be, too. One option is to make a custom build, then you can import it like this (for both the build and your own purposes):
Another option is if you have another Both feel like workarounds, but I hope this is helpful food for thought. |
Beta Was this translation helpful? Give feedback.
Thanks @tscpp .
Indeed it isn't exported. I think it should be, too.
One option is to make a custom build, then you can import it like this (for both the build and your own purposes):
Another option is if you have another
$context
you can usecreateChildContext
.Both feel like workarounds, but I hope this is helpful food for thought.