NgFor structural directive to output a collection of films.
- Open the app.component.html template file.
- Apply the
NgForstructural directive to the
<div>element on line 4 in order to iterate over the
filmsproperty defined in the
AppComponentclass, declaring a
filmtemplate variable that is the unique film value within each iteration.
AppComponentclass contains the
filmsproperty, which is an
- You can also examine the
Filminterface and the
filmsdata that are in the data directory.