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;
}
Our tabs will always consist of a title and an ID, which will be useful later when we need to distinguish between individual tabs. Next, we're going to create our tabs component. Using the Angular CLI, we...