Skip to content

Instantly share code, notes, and snippets.

@jherdman
Created June 21, 2018 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jherdman/bcfda6fdb516456c781c99a7df5c8afe to your computer and use it in GitHub Desktop.
Save jherdman/bcfda6fdb516456c781c99a7df5c8afe to your computer and use it in GitHub Desktop.
onChange weirdness
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
onChange() {
this.set('msg', 'i heard a change event');
},
},
});
<form>
{{input type="radio" onChange=(action 'onChange')}}
<button type="reset">Reset</button>
</form>
<p>{{msg}}</p>
{
"version": "0.14.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "2.18.2",
"ember-template-compiler": "2.18.2",
"ember-testing": "2.18.2"
},
"addons": {
"ember-data": "2.18.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment