Skip to content

Commit d86665b

Browse files
fix(aurelia): directly use app container to create root view model
1 parent 9f6fa60 commit d86665b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/aurelia.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class Aurelia {
8282
compositionEngine = this.container.get(CompositionEngine);
8383
instruction.viewModel = root;
8484
instruction.viewSlot = new ViewSlot(this.host, true);
85-
instruction.container = this.container;
85+
instruction.container = instruction.childContainer = this.container;
8686

8787
return compositionEngine.compose(instruction).then(root => {
8888
this.root = root;

0 commit comments

Comments
 (0)