I am loading multiple models (using an ArrayController) with ember-data that obviously returns and id for each model and I am displaying some dynamic map content based on that, which is initialized via JS in the didInsertElement
function.
So my hbs code looks like this:
{{#each controller}}
....
<div class="map" {{bindAttr id="id"}}>
....
{{/each}}
That works fine, but my problem is, I don't just want the id-number for the div id, but I want it with a static prefix: E.g. user-{{id}}
. Or at a different route I would want e.g. news-{{id}}
Is anything like that possible?