Recap

In this section, we've built a filtering system into our task list component. We have also created an additional UI component to render toggle buttons, which we're presenting to the user for selecting the filter criteria:

  • We created a new toggle component to render a set of toggle buttons
  • We used the @HostBinding decorator to create property bindings declaratively from within our component class
  • We learned about the Angular component life cycle and how we can use the OnInit life cycle hook to initialize the component after the input has been processed for the first time

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.