@angular/material and maybe more
Not sure
Importing MatSelectModule into a lazy-loaded component created with the component factory resolver throws an error.
ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AppModule)[InjectionToken mat-select-scroll-strategy -> InjectionToken mat-select-scroll-strategy -> InjectionToken mat-select-scroll-strategy]:
NullInjectorError: No provider for InjectionToken mat-select-scroll-strategy!
Steps:
<mat-select>
in component BResult Error: No provider for InjectionToken mat-select-scroll-strategy!
Repo https://github.com/RogierdeRuijter/lazy-load-component-mat-select
Angular Version: Angular 9.0.0
He,
Thanks for your response!
I will use the 2nd approach you mentioned.
Cheers