Skip to content

Commit 1abe8aa

Browse files
committed
[Glimmer2] Components should have access to the view registry
1 parent 23b01c5 commit 1abe8aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/ember-glimmer/lib/ember-views/child-views-support.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default Mixin.create({
6565

6666
instance.parentView = this;
6767
instance.ownerView = this.ownerView;
68+
instance._viewRegistry = this._viewRegistry;
6869
},
6970

7071
unlinkChild(instance) {

packages/ember-glimmer/tests/integration/components/curly-components-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ moduleFor('Components test: curly components', class extends RenderingTest {
18251825
assert.equal(outer.parentView, this.context, 'x-outer receives the ambient scope as its parentView');
18261826
}
18271827

1828-
['@htmlbars component should receive the viewRegistry from the parentView'](assert) {
1828+
['@test component should receive the viewRegistry from the parentView'](assert) {
18291829
let outer, innerTemplate, innerLayout;
18301830

18311831
let viewRegistry = {};

0 commit comments

Comments
 (0)