Display child elements


#1

Using Autoform ,in the Collection i have:

CvSchema = new SimpleSchema({
    languages:{
        type: [Languages],
    }

Languages = new SimpleSchema({
    language: {
        type: String,
    },
    level: {
        type: String,
    }
});

Tying to display:

{{languages}}

The output is: [object Object]


#2

That output is correct. What are you expecting?


#3

I was trying to display {{ languages.language }} {{ languages.level }}


#4

You should try this :
{{#each languages}}
{{language}}
{{level}}
{{/each}}


#5
{{#with languages}}
 {{language}}
 {{level}}
{{/with}}