We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be nice to have access to the root injector via injector.root to later call dispose() on it.
injector.root
dispose()
Now I have to maintain two references to achieve disposability i.e. root.dispose():
root.dispose()
const root = createInjector()
const injector = root.provideClass('foo', Foo).provideClass('blah', Blah)
It would be cool if I could maintain just a single reference to later do this:
const injector = createInjector().provideClass('foo', Foo).provideClass('blah', Blah) injector.root.dispose()
The text was updated successfully, but these errors were encountered:
This sounds reasonable. I'm open for a PR.
Sorry, something went wrong.
No branches or pull requests
It would be nice to have access to the root injector via
injector.root
to later calldispose()
on it.Now I have to maintain two references to achieve disposability i.e.
root.dispose()
:const root = createInjector()
const injector = root.provideClass('foo', Foo).provideClass('blah', Blah)
It would be cool if I could maintain just a single reference to later do this:
The text was updated successfully, but these errors were encountered: