O'Reilly logo

Mastering Angular Components by Gion Kunz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating navigation components

We will build our navigation from three separate components. Let's look at their purpose real quick:

  • The navigation item component: Represents one navigation item within our navigation. Its responsibility is to render the title of a navigation item as well as its behavior when an item is activated.
  • The navigation section component: This is used to visually separate navigation items that belong together. We can use this component to group navigation items under a title. This grouping makes it easier for our users to find the navigation items they are looking for.
  • The navigation component: This holds the full navigation together. It's just a container that contains our navigation section components together. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required