Skip to content

Instantly share code, notes, and snippets.

@rlivsey
Last active June 19, 2016 00:16
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 rlivsey/d36aaf848c4e863ff482812c54e063d0 to your computer and use it in GitHub Desktop.
Save rlivsey/d36aaf848c4e863ff482812c54e063d0 to your computer and use it in GitHub Desktop.
keyUp
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
handleKeyUp(value, e) {
console.log(arguments);
console.log(e.keyCode);
}
}
});
{{input key-up="handleKeyUp"}}
{
"version": "0.9.2",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.6.0",
"ember-data": "2.6.0",
"ember-template-compiler": "2.6.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment