0
function getFruitsData()
{
var fruit=[];
fruit.push("Apple");
fruit.push("Mango");
fruit.push("Grapes");
fruit.push("Orange");

return fruit;
}

the fruits data i am sending to template which is coming in console

enter image description here

Now i need to show like this Fruits[0] which will result >>> Apple

right Now in template i using this which is not working

{{#each someOtherList}}

{{this.[Fruits][email protected]}} >> not working
{{[email protected]}} >> not working
{{Fruits.[@index]}} >> not working

{{/each}}

i don't need to iterate all data i just need specific data according to index i pass

4

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.