N
Novu16mo ago
empe

Access a variables outside of {{each}} method

I would like to transmit a payload to my layout: { a: 'a', arr: [] }. While iterating through the 'arr' using {{each arr}}, I intend to access the 'a' element. However, the step variables seem to assume that I should have a property on every element of the array. How can I achieve this?
6 Replies
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
empe
empeOP16mo ago
No description
empe
empeOP16mo ago
@jondumea99 Thank you!
Pawan Jain
Pawan Jain16mo ago
Hi @starlorddude Are you able to access outer element of each context
empe
empeOP16mo ago
@jondumea99
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server