Closed Ghostbird closed 4 years ago
However, this is quite an ugly workaround, as far as I know, non-root Angular modules should never import the BrowserModule.
@fegyi001 BrowserModule, BrowserAnimationsModule need to be removed from mangol.module.ts imports
@Ghostbird thanks for the issue, @Cosmocat thanks for the fix. New version will be out soon.
Fixed in 9.1.10-0.2
When I try to use Mangol in a lazy loaded module I run into this issue:
The re-import is non-fatal when it does not happen in a lazy loaded module. However, in this case
<mangol>
cannot be used in the template. of a lazy loaded module component. So as a workaround:ComponentFactoryResolver
and add it to theViewContainerRef
of the component.However, this is quite an ugly workaround, as far as I know, non-root Angular modules should never import the BrowserModule.