개념
<aside>
🍎 @Injectable()
데코레이터가 달린 클래스
</aside>

- @Module() 의 providers 배열에 들어가는 클래스
- services, repositories, factories, helpers, etc.
역할
<aside>
🍎 비즈니스 로직을 담당
</aside>
핵심 아이디어
<aside>
🍎 의존성 주입(DI: Dependency Injection)
</aside>
- 하나의 객체가 다른 객체의 의존성을 제공하는 기술
- IOC(Inversion of Control)의 한 종류
- @Injectable() 데코레이터로 만들어진 클래스는 기본적으로 Nest js 실행 시 싱글턴(Singleton) 객체로 메모리에 존재
- Dependency
- “
dependency
로서 inject
될 수 있다” 의 의미?
Dependency Injection