Skip to content

Instantly share code, notes, and snippets.

@Chandler
Last active December 20, 2015 14:19
Show Gist options
  • Save Chandler/6145216 to your computer and use it in GitHub Desktop.
Save Chandler/6145216 to your computer and use it in GitHub Desktop.
##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