Open ukstv opened 1 year ago
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()
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: