Chapter 2
Conquering Components and Directives
Section 8
Using ngFor and ngIfStructural Directives for Model-Based DOM Control
Any developer that has used a client framework is intimately familiarwith two basicoperations in an application: iterative rendering from a collection and conditionalrendering. - Use ngForto iterate through the articles collection - Incorporate ngIf as ngfor - Use the template directives on thesame element