I have an Angular application that I'm upgrading to version 8 and running into an issue of LoadedRouterConfig not being exposed publicly anymore. I can't find any Angular documentation on this, so I'm not sure how to re-write the code that uses it. Seems like it's creating dynamic routes on the fly?
import {LoadedRouterConfig} from '@angular/router/src/config';
.....
item.path = path;
item.children = [];
if (route.children !== undefined && route.children.length > 0) {
this.childrenProcess(route.children, path, item, context );
} else if (route.loadChildren !== undefined) {
const loadedRouterConfig: LoadedRouterConfig = (route as any)._loadedConfig;
if (loadedRouterConfig !== undefined ) {
this.childrenProcess(loadedRouterConfig.routes, path, item, context);
}
}