Skip to content

Instantly share code, notes, and snippets.

@mike183
Created November 18, 2015 16:37
Show Gist options
  • Save mike183/cef32d9fc97b265e824b to your computer and use it in GitHub Desktop.
Save mike183/cef32d9fc97b265e824b to your computer and use it in GitHub Desktop.
Contextual Components Positional Params Issue (Not Working)
{{#parent-component as |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