Skip to content

Commit

Permalink
feat(elements): pass hooks config to loader service
Browse files Browse the repository at this point in the history
  • Loading branch information
gshokanov committed Apr 15, 2020
1 parent 3e2c261 commit f4c7752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class LazyElementDynamicDirective implements OnInit {
}

this.elementsLoaderService
.loadElement(this.url, this.tag, this.isModule)
.loadElement(this.url, this.tag, this.isModule, elementConfig?.hooks)
.then(() => {
this.vcr.clear();
const originalCreateElement = this.renderer.createElement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class LazyElementDirective implements OnInit {
this.vcr.createComponent(factory);
}
this.elementsLoaderService
.loadElement(this.url, elementTag, this.isModule)
.loadElement(this.url, elementTag, this.isModule, elementConfig?.hooks)
.then(() => {
this.vcr.clear();
this.vcr.createEmbeddedView(this.template);
Expand Down

0 comments on commit f4c7752

Please sign in to comment.