N
Novu17mo 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 User17mo ago
Message Not Public
Sign In & Join Server To View
empe
empeOP17mo ago
No description
empe
empeOP17mo ago
@jondumea99 Thank you!
Pawan Jain
Pawan Jain17mo ago
Hi @starlorddude Are you able to access outer element of each context
empe
empeOP17mo ago
@jondumea99
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server