Skip to content

Instantly share code, notes, and snippets.

@jgwhite
Created July 11, 2016 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgwhite/3ee6e1a12a64c77d498d5d5f9b864863 to your computer and use it in GitHub Desktop.
Save jgwhite/3ee6e1a12a64c77d498d5d5f9b864863 to your computer and use it in GitHub Desktop.
Components
x-coordinator/a model={{coordinator.model}}
x-coordinator/b model={{coordinator.model}}
x-coordinator/c model={{coordinator.model}}
{{yield (hash
a=(component "x-coordinator/a" coordinator=this)
b=(component "x-coordinator/b" coordinator=this)
c=(component "x-coordinator/c" coordinator=this))}}
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
{{#x-coordinator model="foo" as |coordinator|}}
{{coordinator.a}}
<hr>
{{coordinator.b}}
<hr>
{{coordinator.c}}
{{/x-coordinator}}
{
"version": "0.10.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.6.0",
"ember-data": "2.6.1",
"ember-template-compiler": "2.6.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment