Binding to hasMany from template without #each


#1

Hi all,

In my app I have multiple parameter categories, each of them contain parameters. Models look like this.

 // in app/models/parameter-category
export default DS.Model.extend({
    name: DS.attr('string'),
	...
    parameters: DS.hasMany('parameter', { embedded: 'always' }),
});

// app/models/parameter
export default DS.Model.extend({
    caption: DS.attr('string'),
    value: DS.attr('string'),
	...
});

Each parameter category has its own template and the way it structured I can’t use #each for parameters. I know you can’t use indexer for bindings like “value=model.parameters[0].caption”. Is there currently any way I can bind to a specific parameter from template?