Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Created March 20, 2018 06:19
Show Gist options
  • Save alexzuza/608d56c6fa6fc636eb56c0fd495768a9 to your computer and use it in GitHub Desktop.
Save alexzuza/608d56c6fa6fc636eb56c0fd495768a9 to your computer and use it in GitHub Desktop.
DI router dynamic creation
const injector = new OutletInjector(activatedRoute, childContexts, this.location.injector);
this.activated = this.location.createComponent(factory, this.location.length, injector);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment