Skip to main content

Lab 8.1: Album Detail Route

Objectives

  • Display the detail of an Album in a new component
  • This lab is a more challenging lab since there is less guidance
  • You will need to use most of the thing we have seen so far

Instructions

  • Create a new component named AlbumDetailComponent
  • It should have a route with the path album/:id
  • The component should display the detail of the album with the id passed in the URL
  • If the id of the album does not exist, redirect to the HomeComponent
  • We want a show detail button in the album-list.component.ts that will redirect to the album/:id route