Organizational Research By

Surprising Reserch Topic

return array item by index in a meteor spacebars template


return array item by index in a meteor spacebars template  using -'javascript,node.js,mongodb,meteor,spacebars'

I want to access the first item of an array inside a meteor template, I'm using this syntax :

<p>{{array[0]}}</p>


However it doesn't seem like it's working. I don't want to iterate through values using {{#each}}, just pick the first one from the array.
    

asked Oct 6, 2015 by santosh soni
0 votes
7 views



Related Hot Questions

1 Answer

0 votes
NULL
answered Oct 6, 2015 by santosh soni

...