Skip to content

Instantly share code, notes, and snippets.

@chadhietala
Created June 5, 2016 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chadhietala/efe15184c80172cb0636131f74a15c40 to your computer and use it in GitHub Desktop.
Save chadhietala/efe15184c80172cb0636131f74a15c40 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
import t from '../templates/components/my-component';
import f from '../templates/components/foo-bar';
export default Ember.Component.extend({
init() {
this.layout = f;
this._super(...arguments);
this.layout = f;
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{my-component}}
{{outlet}}
<br>
<br>
{
"version": "0.8.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.5.1",
"ember-data": "2.5.2",
"ember-template-compiler": "2.5.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment