A simple grid/list view toggle in Angular: easy & flexible

Brian Treese on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

LivestreamIntermediateDesign Engineering11 min

About this video

This tutorial builds a reusable grid/list view toggle component in Angular. It shows how to sync its state with a parent through model inputs and two-way binding, or manage the state inside the component, and how to switch between views with content projection or by swapping components.

What you’ll learn

  • Build a grid/list view toggle component in Angular
  • Sync toggle state with a parent using model inputs and two-way binding
  • Switch between view modes with content projection or component swapping