Skip to content

Instantly share code, notes, and snippets.

@seanjohnson08
Created February 12, 2016 08:31
Show Gist options
  • Save seanjohnson08/ebf5525e510e885864f6 to your computer and use it in GitHub Desktop.
Save seanjohnson08/ebf5525e510e885864f6 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions: {
updateValue(value) {
this.set('output', value);
}
}
});
<h3>Input form event throwing JS error</h3>
{{input
input="updateValue"}}
{{! This works as expected:
key-down="updateValue"}}
<br>
I would expect the value of the textarea to reflect here:
<br />
{{output}}
<br>
<br>
{
"version": "0.5.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.2.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment