Skip to content

Instantly share code, notes, and snippets.

@kumkanillam
Last active October 13, 2016 15:06
Show Gist options
  • Save kumkanillam/2dde08974078c53c9a19ad8ead56dca8 to your computer and use it in GitHub Desktop.
Save kumkanillam/2dde08974078c53c9a19ad8ead56dca8 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions:{
test(value,event){
console.log('value',value,' event ',event);
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<em onclick={{action "test" 'id'}}> Em element </em>
<br>
{{outlet}}
<br>
<br>
{
"version": "0.10.5",
"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.8.0",
"ember-data": "2.8.0",
"ember-template-compiler": "2.8.0",
"ember-testing": "2.8.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment