Ekaitz Hernandez Troyas Ekaitz Hernandez Troyas - 1 year ago 71
HTML Question

Display a list of items in Ember not working with each

I am trying to display a list of items in Ember.js but is not working and I don't get any error in the console. If I go to a specific element it works but I can't iterate the array.

<h1> Forecast 16 days </h1>

// this line works

// this block doesn't work
{{#each item as |model|}}

Answer Source

The each block params are inverted. It should be

{{#each model as |item|}}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download