Skip to content

Instantly share code, notes, and snippets.

@paddyobrien
Last active January 30, 2017 20:34
Show Gist options
  • Save paddyobrien/a45322f140e86f6a33ca80188669f048 to your computer and use it in GitHub Desktop.
Save paddyobrien/a45322f140e86f6a33ca80188669f048 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
{{outer-component
componentOnItsOwn=(component 'inner-component')
componentInAHash=(hash component=(component 'inner-component'))}}
<br>
<br>
This is the outer component
<br/><br/>
This was passed in inside a hash:<br/>
{{componentInAHash.component}}
<br/><br/>
This was passed in without being in a hash:<br/>
{{componentOnItsOwn}}
{
"version": "0.11.0",
"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.10.2",
"ember-data": "2.11.0",
"ember-template-compiler": "2.10.2",
"ember-testing": "2.10.2"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment