Skip to content

Instantly share code, notes, and snippets.

@fabriciofmsilva
Last active September 14, 2019 14:24
Show Gist options
  • Save fabriciofmsilva/68d0d50a687423d787fbdcdfc2812fe6 to your computer and use it in GitHub Desktop.
Save fabriciofmsilva/68d0d50a687423d787fbdcdfc2812fe6 to your computer and use it in GitHub Desktop.
Angular Concepts

Angular DI

Ivy renderer

NodeInjector

bloom filter

R3Injector

view object in Angular -> In simple words, it is some internal object that represents an Angular template.

LView, TView.data

The LView array contains data describing a specific template and in TView.data Angular keeps the information that is shared across templates

Cumulative and template bloom filters

  • Root component always creates NodeInjector on root view
  • Angular creates NodeInjector on any tag that matches Angular component or any tag on which we’re applying a directive
  • Providers and viewproviders defined on Component/Directive also create NodeInjector if it has not been created yet

special objects: ChangeDetectorRef, ElementRef, TemplateRef, ViewContainerRef, Renderer2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment