Skip to content

Instantly share code, notes, and snippets.

@mapohjola
Last active October 9, 2015 05:58
Show Gist options
  • Save mapohjola/341ba93d89f5f02bacd7 to your computer and use it in GitHub Desktop.
Save mapohjola/341ba93d89f5f02bacd7 to your computer and use it in GitHub Desktop.
Component layout
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
{{my-component layout='other-template' layoutName='other-template'}}
<br>
<br>
import Ember from 'ember';
export default Ember.Component.extend({
});
This is not what I wanted
This is what I wanted
{
"version": "0.4.11",
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "http://builds.emberjs.com/tags/v2.1.0/ember.debug.js",
"ember-data": "http://builds.emberjs.com/tags/v2.1.0/ember-data.js",
"ember-template-compiler": "http://builds.emberjs.com/tags/v2.1.0/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment