Skip to content

Instantly share code, notes, and snippets.

@sglanzer-deprecated
Created July 19, 2016 19:00
Show Gist options
  • Save sglanzer-deprecated/224e8167f21d5258f073d4a15b6e99f4 to your computer and use it in GitHub Desktop.
Save sglanzer-deprecated/224e8167f21d5258f073d4a15b6e99f4 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
clickHandler() {
alert('who')
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<ul>
<li onclick={{action (action 'clickHandler')}}>what</li>
</ul>
<br>
<br>
{
"version": "0.10.1",
"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.1",
"ember-template-compiler": "2.6.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment