Skip to content

Instantly share code, notes, and snippets.

@Asherlc
Created August 12, 2016 20:09
Show Gist options
  • Save Asherlc/88a012a865086742ab2d2601565f6f57 to your computer and use it in GitHub Desktop.
Save Asherlc/88a012a865086742ab2d2601565f6f57 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
myValue: 'foo',
actions: {
logValue(value) {
console.log(value)
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
<button {{action 'logValue' (mut myValue)}}>Log</button>
<br>
<br>
{
"version": "0.10.4",
"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.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment