{
"_id": "asd4232sd",
"title": "This is a title",
"viewers": [
"as429r23",
"asd40005",
"sk4929sdf"
]
}
I then display all of them in an {{#each}}. Is there an easy way to display just the count of fields in the viewers array in my template? Something like:
{{#each}}
{{title}} - Number of Viewers: {{viewers.count}}
{{/each}}
{{../length}} or some variation thereof should work too. I’m not at my computer so can’t test it but I’m pretty sure length is a standard property and .. gives you the parent context.