I have a scenario where I can't wrap the label around an input element, so it has to look something like this:
<label>Name</label>
{{input value=name}}
I'd like to set the label's for attribute to match the input element's ID so that the rendered output is something like this:
<label for="ember351">Name</label>
<input type="text" value="" id="ember351" />
How can I get a reference to the element ID? I've seen some solutions where you use an Ember.TextField view, but I'm looking for a solution that supports the input helper (i.e. {{input}})