Skip to content

Instantly share code, notes, and snippets.

@mike183
Last active November 18, 2015 16:55
Show Gist options
  • Save mike183/331b165b525660a2307d to your computer and use it in GitHub Desktop.
Save mike183/331b165b525660a2307d to your computer and use it in GitHub Desktop.
Contextual Components Positional Params Issue (Working)
{{#parent-component as |component|}}
{{component component.childComponent "param1" "param2"}}
{{/parent-component}}
import Ember from 'ember';
const childComponent = Ember.Component.extend({});
childComponent.reopenClass({
positionalParams: "params"
})
export default childComponent;
Positional Params: {{params}}
{{yield (hash childComponent=(component "child-component"))}}
{
"version": "0.4.16",
"EmberENV": {
"FEATURES": {}
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "beta",
"ember-template-compiler": "beta"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment