문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top