Skip to content

Commit

Permalink
fix(aurelia): directly use app container to create root view model
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 7, 2015
1 parent 9f6fa60 commit d86665b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aurelia.js
Expand Up @@ -82,7 +82,7 @@ export class Aurelia {
compositionEngine = this.container.get(CompositionEngine);
instruction.viewModel = root;
instruction.viewSlot = new ViewSlot(this.host, true);
instruction.container = this.container;
instruction.container = instruction.childContainer = this.container;

return compositionEngine.compose(instruction).then(root => {
this.root = root;
Expand Down

0 comments on commit d86665b

Please sign in to comment.