I load several models (using ArrayController) with ember data that explicitly returns an id for each model, and I show some dynamic map contents based on this, 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}}
This works fine, but my problem is that I do not just want the id id for the id div, but I want it with a static prefix: for example. user-{{id}} . Or on another route that I would like to get, for example, news-{{id}} Is this possible?
source share