Slide 1

Slide 1 text

Advanced Angular Design Patterns Košice, 11.07.2018

Slide 2

Slide 2 text

David Leitner Technical Expert at @dufeit

Slide 3

Slide 3 text

@dufeit

Slide 4

Slide 4 text

7th Law of Computer Programming: Program complexity grows until it exceeds the capability of the programmer to maintain it. @dufeit

Slide 5

Slide 5 text

How sofware appicatons evove over tme

Slide 6

Slide 6 text

Root-Component Parent-Component Component Parent-Component ViewChild Compose Components with ng-content Make usage of the Component Injectors Provide reusabe contents by ng-template @dufeit

Slide 7

Slide 7 text

Smart & Dump Components @dufeit or Presentational and Container Components

Slide 8

Slide 8 text

Make usage of the Marker Directives ContentChildren Access chidren from outside by ContentChildren Access Component Injectors with { read: … } Directive ContentChildren Provider read Directive @dufeit

Slide 9

Slide 9 text

TL;DR: Use Composition