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 a tabbed interface component

Let's introduce a new UI component to the project that will provide us with a tabbed interface that we can use for navigation purposes inside of the project component. We'd like to divide the project view into different areas that can be accessed through this tabbed interface:

Screenshot of the tabbed interface we're going to create

Before we create a new component to render tabs, we will update our model to declare an interface that we're using to represent an individual tab. Open the src/app/model.ts file and apply the following changes:

export interface Tab {  readonly id: any; readonly title: string; ...

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