Pergunta

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?

Foi útil?

Solução

{{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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top