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

Advanced Angular Design Patterns

Advanced Angular Design Patterns

SQUER Solutions

July 11, 2018
Tweet

More Decks by SQUER Solutions

Other Decks in Technology

Transcript

  1. 7th Law of Computer Programming: Program complexity grows until it

    exceeds the capability of the programmer to maintain it. @dufeit
  2. <ng-content/> Root-Component Parent-Component Component Parent-Component <ng-template/> ViewChild Compose Components with

    ng-content Make usage of the Component Injectors Provide reusabe contents by ng-template @dufeit
  3. Make usage of the Marker Directives <any-element/> ContentChildren Access chidren

    from outside by ContentChildren Access Component Injectors with { read: … } <any-element/> <any-element-one /> Directive <any-element/> ContentChildren Provider read <any-element-two /> Directive @dufeit