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}}
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}}
{{#each model.myApi key="someId" as |myApi|}}
{{my-rediobutton name="myName_(get myApi 'someId')"}}
{{/each}}
I think this should works.
that will not work. You have to use the concat helper