NestJs - Service Providers & Dependency Injection [03]

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

Computerix

Computerix

Күн бұрын

Пікірлер: 17
@MohamedSaqr
@MohamedSaqr Жыл бұрын
Excellent explanation. Keep going. 👌
@aryanrahman3212
@aryanrahman3212 9 ай бұрын
Very good explanation, may God do good to you!
@Computerix
@Computerix 9 ай бұрын
Thanks! God bless you
@piyumalchandrarathna5169
@piyumalchandrarathna5169 7 ай бұрын
great explanation.❤
@asharma741
@asharma741 Жыл бұрын
very well explained!!😀
@mahaburrahman1666
@mahaburrahman1666 Жыл бұрын
Greate explanation, take love from heart
@Computerix
@Computerix Жыл бұрын
Thanks !
@dd3715
@dd3715 Жыл бұрын
thank bro, I really needed this 🤗
@Computerix
@Computerix Жыл бұрын
You're welcome :)
@brightertomorrow3343
@brightertomorrow3343 Жыл бұрын
Great keep going champ ❤
@Computerix
@Computerix Жыл бұрын
Thank you !
@omarps6622
@omarps6622 11 ай бұрын
keep it up bro ✌
@Computerix
@Computerix 11 ай бұрын
Thank you !
@odaytarek3528
@odaytarek3528 Ай бұрын
@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 Жыл бұрын
@@Computerix Greate explanation,
NestJs - Modules [04]
16:03
Computerix
Рет қаралды 2,9 М.
NestJs - Controllers [02]
20:32
Computerix
Рет қаралды 2,2 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Learn Dependency Injection and Write Better Code
21:52
Amigoscode
Рет қаралды 179 М.
Dependency Injection & Inversion of Control
11:00
Ryan Schachte
Рет қаралды 202 М.
NestJs - Exception Filters [06]
21:18
Computerix
Рет қаралды 6 М.
NestJs - Guards & Authentication & Authorization [08]
33:05
Computerix
Рет қаралды 12 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 44 М.
NestJs - Pipes & Validation [07]
26:08
Computerix
Рет қаралды 3,6 М.
NestJs Microservices with RabbitMQ
23:21
Computerix
Рет қаралды 20 М.