I've setup a simple handlebars template displays images from records from a model. The following works as expected and uses the imageURL on each item to display the image.
{{#each this}}
<img {{bindAttr src="imageURL"}} >
{{/each}}
However, I also want to display the first image in the set of records. Going by How do I access an access array item by index in handlebars? I added the following with no luck.
<img {{bindAttr src="this.0.imageURL"}} >
I also tried the following with no luck either.
{{#with this.[0]}}
<img {{bindAttr src="imageURL"}} >
{{/with}}
Any ideas?
Notables: Ember 1.2.0, Handlebars 1.2.0, jQuery 1.10.2