Skip to content

Commit

Permalink
Adds repro steps for positional params (working now)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelMadero committed Oct 3, 2016
1 parent 8b2dd8b commit f4de666
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/dummy/app/components/positional-params.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Ember from 'ember';
import layout from '../templates/components/positional-params';

const PositionalParamsComponent = Ember.Component.extend({
layout,
x: 2,
y: 3,
z: 4
});
PositionalParamsComponent.reopenClass({
positionalParams: ['x', 'y', 'z']
});
export default PositionalParamsComponent;
6 changes: 6 additions & 0 deletions tests/dummy/app/templates/application.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ JS Only pod:
{{#hot-replacement-component baseComponentName="template-only-pod"}}
{{template-only-pod}}
{{/hot-replacement-component}}
<h2>positional-params</h2>
{{#hot-replacement-component baseComponentName="positional-params"}}
{{#positional-params 1}}
From yielded block
{{/positional-params}}
{{/hot-replacement-component}}
3 changes: 3 additions & 0 deletions tests/dummy/app/templates/components/positional-params.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{x}}-{{y}}-{{z}}

{{yield}}

0 comments on commit f4de666

Please sign in to comment.