Fix error, if the backup option is also unavailable, then simply clear the view;
Refactored:
Renamed MfeService to RemoteComponentLoader;
Renamed MfeComponentsCache to RemoteComponentsCache;
Renamed ModularRemoteComponent type to RemoteComponentWithModule;
Wrapped to ngZone.runOutside the loadMfe function calls inside the RemoteComponentLoader;
Added new type ComponentWithNgModuleRef<TComponent, TModule>, that holds component class Type<T> and NgModuleRef;
Changed cached value for RemoteComponentWithModule from ComponentFactory to ComponentWithNgModuleRef;
In RemoteComponentLoader (old name MfeService) renamed function loadModularComponent to loadComponentWithModule
Changed return type of method loadComponentWithModule inside class RemoteComponentLoader from Promise<ComponentFactory<TComponent>> to Promise<ComponentWithNgModuleRef<TComponent, TModule>>;
Fixed:
Refactored:
MfeService
toRemoteComponentLoader
;MfeComponentsCache
toRemoteComponentsCache
;ModularRemoteComponent
type toRemoteComponentWithModule
;ngZone.runOutside
theloadMfe
function calls inside theRemoteComponentLoader
;ComponentWithNgModuleRef<TComponent, TModule>
, that holds component classType<T>
andNgModuleRef
;RemoteComponentWithModule
fromComponentFactory
toComponentWithNgModuleRef
;RemoteComponentLoader
(old nameMfeService
) renamed functionloadModularComponent
toloadComponentWithModule
loadComponentWithModule
inside classRemoteComponentLoader
fromPromise<ComponentFactory<TComponent>>
toPromise<ComponentWithNgModuleRef<TComponent, TModule>>
;