Skip to content

Instantly share code, notes, and snippets.

@acehand
Created August 31, 2015 18:19
Show Gist options
  • Save acehand/e41e3447412a70f3af01 to your computer and use it in GitHub Desktop.
Save acehand/e41e3447412a70f3af01 to your computer and use it in GitHub Desktop.
Bind value - stack
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
name : 'what',
actions : {
submit : function(){
alert(this.get('name'));
}
}
});
{{textarea value=name}}
<button {{action "submit"}}>Click</button>
{{outlet}}
{
"version": "0.4.9",
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.9/ember.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/1.13.11/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.9/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment