Skip to content

Instantly share code, notes, and snippets.

@vitch
Created February 11, 2016 18:11
Show Gist options
  • Save vitch/6c21bc10e1647197e0e2 to your computer and use it in GitHub Desktop.
Save vitch/6c21bc10e1647197e0e2 to your computer and use it in GitHub Desktop.
12467
import Ember from 'ember';
export default Ember.Component.extend({
});
<p>Another component content</p>
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
<h1>Dummy component</h1>
<p>
Re. <a href="https://github.com/emberjs/ember.js/issues/12467">#12467</a> - it seems the <code>layout</code> property does work as expected - as long as there is no <code>template.hbs</code> in the same folder as your <code>component.js</code>
</p>
{{dummy-component}}
import Ember from 'ember';
import layout from '../another-component/template';
export default Ember.Component.extend({
layout
});
{
"version": "0.5.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.2.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment