Domanda

I have several input fields that are logically grouped together. I'd like to bind them to the same object within a controller but with different fields. Something along the lines of this:

{{input valueBinding=someObject.someNestedField}}

Is this possible in Ember? If so, what is the correct syntax?

È stato utile?

Soluzione

{{input value=someObject.someNestedField}}

http://emberjs.jsbin.com/jobimuyo/1/edit

If you do valueBinding you need to put it in quotes

{{input valueBinding='someObject.someNestedField'}}

http://emberjs.jsbin.com/jobimuyo/2/edit

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top