attach
custom behavior
to elements
in the DOM
Modify behavior
Modify DOM structure
Add and remove a set of CSS classes
Add and remove a set of HTML styles
Add two-way data binding to an HTML form element
Repeat a template for each item in a list
Conditionally add or remove an element from the DOM
A set of directives that switch among alternative views
structural directives
are always prefixed
with an *
<p *ngFor="let item of namesList">
{{i}} - Hello {{item}}!
</p>
By Enrique Oriol