Wrapping Up

Directives are just components but without views.

We attach directives to elements by adding them as attributes.

Angular provides a small number of built-in directives and in this section we covered all of them, including:

  • NgFor

  • NgIf

  • NgSwitch

  • NgClass

  • NgNonBindable

In the next section we will create our own custom directives.


Learn Angular 5 For FREE

I've released my 700 page Kick Starter funded Angular 5 book for FREE