Skip to content

Instantly share code, notes, and snippets.

@pzuraq
Last active May 22, 2018 00:32
Show Gist options
  • Save pzuraq/bc3bfb388092bc342be815b5d51d6129 to your computer and use it in GitHub Desktop.
Save pzuraq/bc3bfb388092bc342be815b5d51d6129 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
this.foo = () => { this.set('bar', 'baz'); }
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{{yield}}
<button onclick={{foo}}>{{bar}} click</button>
{
"version": "0.13.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": "1.12.2",
"ember-template-compiler": "1.12.2",
"ember-testing": "1.12.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment