abuiles / ember-101

https://leanpub.com/ember-cli-101
95 stars 23 forks source link

suggestion #5

Open abuiles opened 10 years ago

abuiles commented 10 years ago

My suggestion? Before generating the index route and template on p15, put the {{#each}} loop in "templates/friends.hbs" and show it working there after you've added the model function to "routes/friends.js". Then generate the index route and template and move the {{#each}} loop down a level. And then explain to the reader why we want to be explicit by defining it in that innermost layer.