...

/

List Rendering

List Rendering

We’ll cover how to render a list of songs in our Ember application in this lesson.

Rendering the list of songs reactively

In the songs template, songs.hbs, we render each song in @model. However, @model is set only once when we enter the corresponding route. When we add the new song to the band, band.songs changes, but {{#each @model as |song|}} is not re-run because @model, itself, didn’t change. One way to fix this would be to reset @model ...

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