Handlebars template: iterate and dynamic attribute values


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 model.myApi key="someId" as |myApi|}}
  {{my-rediobutton name="myName_(get myApi 'someId')"}}

I think this should works.


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