Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- constructor(private router: Router) {}
- private addPlugin(routePath, pluginName, pluginPath) {
- const currentConfig = this.router.config;
- currentConfig.push({
- path: routePath,
- loadChildren: `precompiled-modules/${pluginPath}#${pluginName}`,
- });
- this.router.resetConfig(currentConfig);
- }
Add Comment
Please, Sign In to add comment