Angular is amazing! It is fast and smooth once loaded in the browser, but most often the start-up time suffers. Improving the start-up time for Ang...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
Do you know how to get it to work with a Material Dialog instead of a viewcontainer, like this?
I extended your sample at stackblitz.com/edit/lazy-angular-d... but also recieve
Error: No component factory found for LazyComponent. Did you add it to @NgModule.entryComponents?
Hi,
Have you tried providing alternate
componentFactoryResolver
in material dialog config?Thanks. Yes, I tried this but it still causes the same error in Angular 8. I updated the Stackblitz.
In Angular 9 this is fixed and there's no need to pass componentFactoryResolver 👏
I think it's related to this issue github.com/angular/angular/issues/...
am trying your solution everything was running but it's throwing error on this state
const compFactory = moduleRef.componentFactoryResolver.resolveComponentFactory(entryComponent);
Error: No component factory found for SiteedittoolModule. Did you add it to @NgModule.entryComponents?
if can anyone help me that will be great
Hi,
Can you share more code?
How do you write tests for dynamic
import()
in angular?how to pass inputs and catch outputs from this component.
Add input and output in component:-
In the service just add:-
Read more about dynamic components here: angular.io/guide/dynamic-component...
Thanks stackoverflow.com/questions/566855...
This article is full of plagiarism. Many parts have been copied and slightly modified) from juristr.com/blog/2019/04/state-laz...