Dynamic valueBinding in Form view


I have a seemingly simple requirement in an Ember app that is giving me fits.

I want to take this:

{{view Ember.TextField valueBinding="fields.firstName"}}

And make the firstName field a variable. This is the intent, but obviously doesn’t work:

{{view Ember.TextField valueBinding="fields.{{fieldName}}"}}

Am I missing something obvious? This seems like it should be a very basic thing, but I’ve tried probably 10 different things I think “should” work but none of them work as intended.


Perhaps this Stackoverflow question will help you to find a solution