I am trying to lazy load the survey component in my angular application.
TypeScript@NgModule({
imports: [SharedModule, ImageModalModule, SurveyModule],
exports: [SurveyComponent],
declarations: [SurveyComponent],
})
export class SurveyComponentModule {}
When the module is lazy loaded I receive the error:
NullInjectorError: R3InjectorError(AppModule)[PopupService -> PopupService]:
NullInjectorError: No provider for PopupService!
The only way to fix this error is to add the PopupService from the survey-angular-ui library to the AppModule. But when I do this the survey-angular-ui library and the survey-core library are loaded in the AppModule.
Is there a way to Lazy Load the surveyJs libraries in an Angular Module?
Hi Wim,
Thank you for contacting us. I forwarded this issue to our developers for further investigation.
Lazy Load SurveyJS in Angular
We will research this task and update you as soon as we have any news to share.