#native_company# #native_desc#
#native_cta#

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.


Caught a mistake or want to contribute to the book? Edit this page on GitHub!



Advanced JavaScript

This unique course teaches you advanced JavaScript knowledge through a series of interview questions. Bring your JavaScript to the 2021's today.

Level up your JavaScript now!