Skip to content

Instantly share code, notes, and snippets.

@superlou
Created January 16, 2014 23:02
Show Gist options
  • Save superlou/8465198 to your computer and use it in GitHub Desktop.
Save superlou/8465198 to your computer and use it in GitHub Desktop.
Binding data to components
<div class="small-3 columns">
{{when-input text=when}}
</div>
<input type="text" {{bind-attr value=text}} placeholder="When..."
{{action "change" text on="keyUp"}}>
OurMemories.WhenInputComponent = Ember.Component.extend({
actions: {
change: function(text) {
console.log(text);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment