#native_company# #native_desc#
#native_cta#

Wrapping Up

In this section we covered how to create a custom directive.

We learned:

  • That components are directives, but directives with views and templates.

  • How to define a directive with the @Directive decorator.

  • How to listen to the output events and bind to the input properties of a host element from within a directive.

  • How to configure a directive to make it more re-usable.


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!