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

Injector Trees

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Kapunahele Wong Kapunahele Wong
July 02, 2019
23

Injector Trees

Slides for my talk at the Techmaker Meetup in Reading, UK.

Avatar for Kapunahele Wong

Kapunahele Wong

July 02, 2019
Tweet

Transcript

  1. According to the docs: @kapunahele In Angular, a service is

    an instance of a class that can be made available to any part of your application using Angular's dependency injection system. From: https://angular.io/start/data
  2. @kapunahele Angular's dependency injection system Stuff in Trees a service

    is an instance of a class that can be made available => => =>
  3. @kapunahele The visibility decorators can make different things visible depending

    on whether you’ve used @Component.providers or @Component .viewProviders. (Think <#VIEW>)
  4. @kapunahele 1. Two injector trees 2. ElementInjector first, ModuleInjector second

    3. Use visibility decorators to customize where the injector starts and stops looking Recap: