Jan. 29, 2024, 11:25 a.m. | Shameel Uddin

DEV Community dev.to




Video Explanation


Please find video explanation below:







Introduction


Lets first divide the entire term in two parts. "Dependency" and "Injection".

This suggests that there could be one dependency class which needs to be "injected" to another class (simplest of the example).


In nest.js, we normally inject providers (services) in controllers to perform some sort of business logic.


Please note that the task of service should not be authentication, authorization, validation, transformation and/or extending or overriding the function. Because, for all …

class controllers dependency find inject injection introduction javascript nest nestjs node parts services sort video webdev

SOC 2 Manager, Audit and Certification

@ Deloitte | US and CA Multiple Locations

Emergency Management Invoice Compliance Reviewer

@ AC Disaster Consulting | Denver, Colorado, United States - Remote

Threat Intelligence Librarian

@ Microsoft | Cheltenham, Gloucestershire, United Kingdom

Cyber Content Operations Manager - Remote in UK

@ Immersive Labs | United Kingdom

(Junior) Security Engineer (m/w/d)

@ CHECK24 | Berlin, Germany

Cyber Security

@ Necurity Solutions | Bengaluru, Karnataka, India