Up-to-date with Angular 4.4.7, but with support DI to inherited class (when the child class does not have a constructor, while the parent class has it), and with exported
Type (see reflector test).
npm i ts-di
Also you need to install
npm i reflect-metadata
tsconfig.json file, for
compilerOptions you need to set
;;;;expectneedsService instanceof NeedsService.toBetrue;expectneedsService.service instanceof UsefulService.toBetrue;
For more examples, see the tests for ts-di.
For full documentation check Angular DI docs: