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; ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.