...

/

Creating New Templates

Creating New Templates

In this lesson, you’ll learn how to create new templates and add song ratings in our application.

On the same page where bands are listed but none are selected, on the /bands URL, we also want to hint at having to choose one of them to see their songs. Each route’s index route allows us to do just that. So, let’s create a template for bands.index using the following command:

ember g template bands/index

In the terminal widget below, you can try the above command.

Terminal 1
Terminal
Loading...

Then, place the hint in it:

Press + to interact
{{!-- app/templates/bands/index.hbs --}}
<p class="text-center">Select a band.</p>

The parent template bands creates a list of ...

Access this course and 1400+ top-rated courses and projects.