Skip to content

Commit bd456bc

Browse files
feat(aurelia): update to use composition host instruction value
1 parent 9a877de commit bd456bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aurelia.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,13 @@ export class Aurelia {
202202
}
203203

204204
this.host.aurelia = this;
205-
this.container.registerInstance(Element, this.host);
206205

207206
compositionEngine = this.container.get(CompositionEngine);
208207
instruction.viewModel = root;
209208
instruction.container = instruction.childContainer = this.container;
210209
instruction.viewSlot = new ViewSlot(this.host, true);
211210
instruction.viewSlot.transformChildNodesIntoView();
211+
instruction.host = this.host;
212212

213213
return compositionEngine.compose(instruction).then(root => {
214214
this.root = root;

0 commit comments

Comments
 (0)