How to access _factories property from ComponentFactoryResolver in Angular9 which was available in Angular7?
问题 I used ComponentFactoryResolver to access all the entry component factories and then add routes of those components dynamically in Angular 7. constructor(private componentFactoryResolver: ComponentFactoryResolver) { } var factories = this.componentFactoryResolver['_factories'] let route: Route = { path: MyPath, component: factories[0].factory[1].componentType }; this.router.resetConfig(config); I updated my project to Angular 9 and now _factories are not available in ComponentFactoryResolver.