javascript - Render an array of objects in mustache js -


[object, object]     0: object         0: object         id: 1         name: "xvxvxcv"         semester: 2     1: object 

how can render array of objects in mustache js? can't use {{#data}} {{/data}} iterate because hasn't name.

[object, object]     0: object         0: object         id: 1         name: "xvxvxcv"         semester: 2     1: object 

probably output shown in js console. got output entering variable. of course, must have assigned object variable. when have variable assigned object, can directly access variable in mustache code this,

{{#object}}   {{key}} : {{value}} {{/object}} 

Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -