Bear with me because I'm new to Ember, and I'm working with ember.js and I'm trying to pass a model id in an HTML attribute so that jQuery can recognize it has an id. So, I'm doing this in an emblem template:
each step in steps
tr
td = step.position
td = step.name
td = step.address
td
a href='#' style='display:inline-block;' data-reveal-id="reviews_modal_#{step.id}" class='photos_link' Reviews
step is an ember object/model and I'm trying to reference it by giving it an id "data-reveal-id="reviews_modal_#{step.id}"...
After inspecting the element in Chrome, this is what is returned:
<a href="#" style="display:inline-block;" data-reveal-id="reviews_modal_<script id='metamorph-13-start' type='text/x-placeholder'></script>1<script id='metamorph-13-end' type='text/x-placeholder'></script>" class="photos_link">Reviews</a>
Note that it seems to be passing the correct step.id (1) but also passing lots of ember script tags as well, which isn't what I want.
So my quick question is: how can I use the step.id property in an HTML attribute so that I can uniquely identify that tag with jQuery?
Thanks for your help -- I'm quite an Ember newbie!