November 2019
Beginner
804 pages
20h 1m
English
This brings us to the feature that NestJS borrows from Angular: DI. Once again, it works exactly like with Angular.
In reality, the whole API of NestJS is very close to the Angular API. Kamil Mysliwiec, the author of NestJS, did this on purpose, to limit the mental overhead of learning another framework with its own specific universe. Thanks to this, NestJS is really easy to learn for anyone already familiar with Angular.
Just like with Angular, we can use an @Injectable decorator to declare injectable elements, define providers, and easily inject instances where required.
Read now
Unlock full access