I have a list {{# {test: . }}}
{{# {test: . }}}
and within which I need to have another list {{#test:i}}
. So that while iterating I can do a comparison like
{{#if test.marks== test[i].marks}}
A given reference can only refer to one value at a given location – test
can't be both the array and members of that array. Try replacing the aliasing block ( {{# {test: .} }}
with a different name (eg {{# {testA: this} }}
).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.