aksanoble
aksanoble

Reputation: 2570

Accessing values from an array of objects in MustacheJS

How do I access values from an array of Objects in MustacheJS? For example using {{foo[0].bar}} does not result in a valid render.

Upvotes: 1

Views: 40

Answers (1)

Andrey
Andrey

Reputation: 4050

It's done with dot (.)

{{foo.0.bar}}

Upvotes: 2

Related Questions