I iterate over an array of objects in the Handberbars Ember.js template and try to display a placeholder image for each using holder.js .
Outside the scope of the #each loop, the holder.js file displays the placeholder image as expected:
<img data-src="holder.js/100x100" src='' alt='person image' /> {{
Inside the #each loop, note images are not displayed:
{{#each person in controller}} <img data-src="holder.js/100x100" src='' alt='person image' /> person.name {{/each}}
Maybe there is something that I donβt understand about how #each loops work, but is there a trick for getting placeholder images here?
source share