0
votes

I want to use Angular DI as standalone module for Node's webserver.

I have three levels DI:

  • first level is root injector
  • second level is child of root injector; its need per request for original Node's http.IncomingMessage and http.ServerResponse.
  • third level is child of second injector; its need to create new instancies of my Request and Response classes, etc.

I worry about when DI removed child injectors. I need to removed them manually?

1

1 Answers

1
votes

I glanced the source code of injectors. As a parent injector does not remember their children, it seems that they are removed together with the removal of a variable, where they were assigned.