suchitpuri / emberjs-essentials

Ember.js Essentials Code Repository
GNU Lesser General Public License v3.0
18 stars 16 forks source link

chapter3 - exemple1 - not displaying colors array at all... #13

Closed ghost closed 8 years ago

ghost commented 8 years ago

I bought your book recently and I am trying to replicate your examples using the latest version of ember-cli ( ember 2.4.2, node 5.6.0) so I'm not running directly your code, but I did an ember init before running .. and updated the generated files with your code ..

In Chapter 2 - example 1 , the color list is not displayed at all...

 Welcome to Ember.js

Hi, this is John Doe. I like the following colors.
©2014 Ember.js Essentials

You can check my updated files for this example at https://github.com/erwin16/chapter3-example1 what's wrong with this array ?

once I'll be done with all your book examples with the latest version of embler-cli , I'll put them on github

ghost commented 8 years ago

solved ... I updated the dependencies, adding ember-data in bower.json, then running bower install. I changed the index.hbs template to

Hi, this is {{name}}.<br/>
I like the following colors.
<ul>

{{#each model as |item|}}

  • {{item}}
  • {{/each}}