Handlebars template: iterate and dynamic attribute values


#1

How can I acheive iterating over my API response and rendering dynamic attribute values in my template using custom component ?

{{#each model.myApi as |myApi|}}
{{my-radiobutton name='myName_{{myApi.someId}}'}}
{{/each}}

#2
{{#each model.myApi key="someId" as |myApi|}}
  {{my-rediobutton name="myName_(get myApi 'someId')"}}
{{/each}}

I think this should works.


#3

that will not work. You have to use the concat helper