NestJs - Service Providers & Dependency Injection [03]

  Рет қаралды 5,078

Computerix

Computerix

Күн бұрын

Пікірлер: 17
@MohamedSaqr
@MohamedSaqr Жыл бұрын
Excellent explanation. Keep going. 👌
@aryanrahman3212
@aryanrahman3212 8 ай бұрын
Very good explanation, may God do good to you!
@Computerix
@Computerix 8 ай бұрын
Thanks! God bless you
@piyumalchandrarathna5169
@piyumalchandrarathna5169 6 ай бұрын
great explanation.❤
@dd3715
@dd3715 Жыл бұрын
thank bro, I really needed this 🤗
@Computerix
@Computerix Жыл бұрын
You're welcome :)
@asharma741
@asharma741 Жыл бұрын
very well explained!!😀
@mahaburrahman1666
@mahaburrahman1666 11 ай бұрын
Greate explanation, take love from heart
@Computerix
@Computerix 11 ай бұрын
Thanks !
@brightertomorrow3343
@brightertomorrow3343 Жыл бұрын
Great keep going champ ❤
@Computerix
@Computerix Жыл бұрын
Thank you !
@odaytarek3528
@odaytarek3528 2 күн бұрын
@omarps6622
@omarps6622 10 ай бұрын
keep it up bro ✌
@Computerix
@Computerix 10 ай бұрын
Thank you !
@RayhanHibatullah
@RayhanHibatullah Жыл бұрын
what is the diffrences between services and providers? both have @injectable and seems to have the same function (to be injected in something). I am from angular background so I kind a confused (or not)?
@Computerix
@Computerix Жыл бұрын
A provider is something that can be injected (could be a class, or an object, or even a number). When a class is decorated with @Injectable, we know that it's a provider and can be injected and used as a dependancy. It could be a service, or a helper class etc.. A service is used to handle business logic, to keep your application clean and seperated. So instead of putting all your logic in your controller for example, you create a service that takes care of the business logic to keep your code clean and seperared. It's a good idea to decorate a service with @Injectable (marking that specific service as a provider) because that way, we can take advantage of dependancy injection to use it in our application. In this example, we can see that the service is a provider. But a provider doesn't have to be a service. I hope it made things clearer !
@GuroBeridze
@GuroBeridze 11 ай бұрын
@@Computerix Greate explanation,
NestJs - Modules [04]
16:03
Computerix
Рет қаралды 2,8 М.
NestJs - Exception Filters [06]
21:18
Computerix
Рет қаралды 5 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
NestJs - Best Practices + Implementations
22:26
Computerix
Рет қаралды 10 М.
Clean Architecture in TypeScript
58:19
Donny Roufs
Рет қаралды 27 М.
NestJs Microservices with RabbitMQ
23:21
Computerix
Рет қаралды 18 М.
Dependency Injection & Inversion of Control
11:00
Ryan Schachte
Рет қаралды 201 М.
Websockets in NestJs (Real-Time Chat App)
24:51
Computerix
Рет қаралды 10 М.
Dependency Injection простыми словами
18:17
devschacht “Девшахта”
Рет қаралды 88 М.
NestJS Dependency Injection Ultimate Guide (Part 1)
23:27
Notezz
Рет қаралды 2,2 М.
Authorization in NestJs : Roles & Permissions
40:11
Computerix
Рет қаралды 2,8 М.