This video explains the Standard Provider - Class as Dependency an essential topic of Dependency Injection. We will see the @Injectable decorator, Constructor injection, and ways of providing the Dependency using Injection tokens which also includes the use of the @Inject Decorator and @Optional Decorator.
This video also discusses the different ways of defining the providers using "useClass", "useExisting" and Same name syntax.
Topics covered
✱ Standard Providers
✱ @Injectable decorator
✱ Constructor Injection
✱ @Inject decorator
✱ @Optional decorator
✱ useClass
✱ useExisting
▬▬▬▬▬▬ 🔗 Links ▬▬▬▬▬▬
► GitHub (Source code): https://bit.ly/3NPfUu0
► NestJS - Dependency Injection Complete Guide : • NestJS #10 - Dependency Injection | IOC Co...
▬▬▬▬▬▬ 📚 CHAPTERS ▬▬▬▬▬▬
00:00 - Introduction
00:26 - @Injectable Decorator - Class Provider
02:37 - useClass
03:50 - Constructor Injection
05:31 - Same name Provider
06:10 - @Inject Decorator
07:25 - Cannot resolve dependency error
08:18 - @Optional Decorator
09:00 - When to use "useClass"
13:05 - useExisting & Caching
14:55 - useExisting vs useClass
▬▬▬▬▬▬ 🔖 RECOMMENDED COURSES ▬▬▬▬▬▬
🎬 Angular In-Depth (Hindi) - https://bit.ly/34nHrBh
🎬 Angular Architecture - • 1. Angular Architecture | Angular In Depth...
🎬 NestJS Framework | Backend Development (Hindi) - https://bit.ly/3titPk3
🎬 RxJS - The Practical Guide (Hindi) - https://bit.ly/3GBcXsf
🎬 RxJS - Promise vs Observable | A depth comparison - • 5. RXJS - Promise vs Observable | A depth ...
🎬 RxJS - Introduction to Reactive programming - • 1. RXJS - Introduction to Reactive program...
▬▬▬▬▬▬ CONNECT WITH ME 👋 ▬▬▬▬▬▬
🐦 Twitter: / akacomputerbaba
🏠 Discord: https://bit.ly/3Js25iy
👓 GitHub: https://github.com/cistroncoder
📧 Email: [email protected]
💙 Join this channel
/ computerbabaofficial
▬▬▬▬▬▬ 🎻 MUSIC ▬▬▬▬▬▬
🎵 Fresh Start - Joakim Karud
https://freesound.org
▬▬▬▬▬▬ # HASHTAGS ▬▬▬▬▬▬
#AmazingNestjs #nestjs #computer_baba #dependency_injection #ioc_container #routing #nestjs_project #nodejs #rest_api #http #expressjs #fastify #graphql #mongodb #sql #typeorm #microservices #backend_development #javascript #typescript #rxjs #json
▬▬▬▬▬▬ TAGS ▬▬▬▬▬▬
nodejs
nestjs
json
xml
REST api
http
request
routing
controller
mvc
expressjs
fastify
backend development
mongodb
sql
java
j2ee
spring boot
spring rest api
spring mvc
typeorm
graphql
swagger
jwt