lmeijdam / angular-umd-dynamic-example

Angular UMD example of loading new modules dynamically
174 stars 55 forks source link

Not working with angular 7 #14

Closed mattae closed 5 years ago

mattae commented 5 years ago

When provided example is run with angular 7, dynamic module path seems to be corrupt, such that the actual module path is missing in _loadedConfig in its router config; it contains every other path present before the module path is activate

loadedConfig: LoadedRouterConfig module: NgModuleRef {_moduleType: ƒ, parent: NgModuleRef, _bootstrapComponents: Array(0), _def: {…}, _destroyListeners: Array(0), …} routes: Array(2) 0: {path: "", redirectTo: "dashboard", pathMatch: "full"} 1: {path: "dashboard", component: ƒ}