Skip to content

How do I access the bindingContext constructor? #149

Answered by brianmhunt
tscpp asked this question in Q&A
Discussion options

You must be logged in to vote

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):

import {
  bindingContext as BindingContextConstructor
} from "@tko/bind";

Another option is if you have another $context you can use createChildContext.

Both feel like workarounds, but I hope this is helpful food for thought.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tscpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants