Advanced Angular Design Patterns

Advanced Angular Design Patterns


SQUER Solutions

July 11, 2018


  1. 3.
  2. 4.

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

    exceeds the capability of the programmer to maintain it. @dufeit
  3. 6.

    <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
  4. 8.

    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