Recap

Within this section, we've created our navigation components and used them to create our project navigation. You have learned about the following concepts:

  • Using content projection to build a content-based API for your components
  • The idea of content projection slots and the use of <ng-content>
  • Using the select attribute on content slots to selectively project content
  • Using the @HostListener decorator to bind host element events to component methods

Get Mastering Angular Components now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.