Guest User

Untitled

a guest
Feb 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. constructor(private router: Router) {}
  2.  
  3. private addPlugin(routePath, pluginName, pluginPath) {
  4. const currentConfig = this.router.config;
  5. currentConfig.push({
  6. path: routePath,
  7. loadChildren: `precompiled-modules/${pluginPath}#${pluginName}`,
  8. });
  9. this.router.resetConfig(currentConfig);
  10. }
Add Comment
Please, Sign In to add comment