I am working on a project in meteor which has a mongo collection.
Let's call this collection "A".
Documents in "A" are of the following structure:
{ id:"XXX", name:"YYY", array: { "1": text1, "2": text2 } }
I also have a template to show this kind of document inside my html:
<input type="text" name={{name}} value={{array.$1}} />
The value in array.1 is not presented. My question is how do I present this value?
I've been googling it for a long time now, found nothing useful but this: Rendering MongoDB documents with Meteor
Which didn't really help. Also meteor documentation doesn't seem to have information about this kind of usage.