Skip to content

Instantly share code, notes, and snippets.

@patsy-issa
Last active November 23, 2016 12:12
Show Gist options
  • Save patsy-issa/c7961d4522619f8e5aabbd44affaa9ac to your computer and use it in GitHub Desktop.
Save patsy-issa/c7961d4522619f8e5aabbd44affaa9ac to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
potato: 1,
actions: {
incrementPotato() {
this.incrementProperty('potato');
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{{unbound potato}}
<button {{action 'incrementPotato'}}>Click me</button>
{
"version": "0.10.6",
"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.9.0",
"ember-data": "2.9.0",
"ember-template-compiler": "2.9.0",
"ember-testing": "2.9.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment