Redirecting in Ember

In this lesson, you’ll learn how to perform redirection in Ember.

Redirecting

Let’s say we also want to show a description of each band on a new page that we’ll call the band details page. As a first step, let’s introduce tabbed navigation for each band. One tab will list the songs that we already have while the other one will be called “Details” and show a short description of the band.

First, we create a new route for the “Details” tab. Just like songs, it should be a subroute of the bands.band route:

ember g route bands/band/details

Let’s add the tabbed navigation in the template for the bands.band route so that we can switch between the details and the songs subroutes:

Get hands-on with 1200+ tech skills courses.