Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dependency Injection in Nest and Angular: Inter...

Dependency Injection in Nest and Angular: Intersection & Mismatch

Dependency Injection framework is a core and inherent feature of both Nest and Angular. DI simplifies creating scalable, testable, and maintainable applications by giving us flexible and efficient abstractions. However, did we ever think how this mechanism works underneath? In this talk, we’ll compare how Nest and Angular DI systems differ from each other as well as dive into the basics of the metadata reflection API in TypeScript.

Kamil Mysliwiec

January 11, 2019
Tweet

More Decks by Kamil Mysliwiec

Other Decks in Programming

Transcript

  1. KAMMYSLIWIEC ROOT A B C COMPONENT A COMPONENT B COMPONENT

    C @Component({}) export class CmpC { constructor(private c: C) {} }
  2. KAMMYSLIWIEC ROOT A B C COMPONENT A COMPONENT B COMPONENT

    C @Component({}) export class CmpC { constructor(private c: C) {} }
  3. KAMMYSLIWIEC ROOT A B C COMPONENT A COMPONENT B COMPONENT

    C @Component({}) export class CmpC { constructor(private c: C) {} }
  4. KAMMYSLIWIEC ROOT A B C COMPONENT A COMPONENT B COMPONENT

    C @Component({}) export class CmpC { constructor(private c: C) {} }