rockandrollwithemberjs / rarwe-issues

Errata and updates for the Rock and Roll with Ember.js book
https://rockandrollwithemberjs.com
43 stars 4 forks source link

Page 201: typo when referencing @model={{band.slug}} #473

Closed belgoros closed 4 years ago

belgoros commented 4 years ago

On page 201 the book says:

You could also argue that since the transition is to a leaf route, we should make that explicit in our template, by passing @route="bands.band.index", like this: <LinkTo @route="bands.band.index" @model={{band.slug}} >.

If I'm not mistaken, we removed slug from the Band model earlier in previous chapter(s), so shouldn't be @model={{band.id}}?

balinterdi commented 4 years ago

Great catch, thank you, will be fixed in the next version.