Last active
December 20, 2015 14:19
-
-
Save Chandler/6145216 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##EDIT possible solution: | |
OrganizationsNewController = Em.ObjectController.extend | |
fields: Em.Object.create | |
name: '', | |
##Original Question: | |
#this works, I can bind to name | |
#controller | |
OrganizationsNewController = Em.ObjectController.extend | |
name: '' | |
#template | |
<div class="field"> | |
{{view Ember.TextField | |
type="text" | |
placeholder="Name" | |
valueBinding="name" | |
}} | |
</div> | |
#this doesn't work, I can't bind to the property of an object | |
#controller | |
OrganizationsNewController = Em.ObjectController.extend | |
fields: | |
name: '', | |
#template | |
<div class="field"> | |
{{view Ember.TextField | |
type="text" | |
placeholder="Name" | |
valueBinding="fields.name" | |
}} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment