0

I have a JavaScript object like this

 Object {all: Array[5], cattype: "sometype"}

My question is, how to write cattype in the code below

I do this

 {{#each all}}           
    <li><a href="#{{cattype}}/{{ id }}" >{{{title}}}</a></li>
 {{/each}}

This code is working, just cattype is not written. Outside {{#each}} it's working of course.

Thank you very much for your attantion ! :)

2
  • You should post the solution as an actual answer: stackoverflow.com/help/self-answer Commented Dec 4, 2014 at 18:24
  • 1
    Thank you! I'll make changes. Commented Dec 4, 2014 at 20:40

1 Answer 1

1

I found solution

{{../cattype}}

solved my problem

Sign up to request clarification or add additional context in comments.

Comments

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.