core/plugins/plugins-resolve.service.ts
Properties |
Methods |
constructor(translateService: TranslateService, fetchClient: FetchClient, appState: AppStateService, injector: EnvironmentInjector)
|
|||||||||||||||
|
Parameters :
|
| clearURLRemotesCache |
clearURLRemotesCache()
|
|
Clears URL remotes cache.
Returns :
void
|
| loadModule | ||||||
loadModule(remoteNgModule: NgModuleRef<> | Type<>)
|
||||||
|
Parameters :
Returns :
NgModuleRef<unknown>
|
| loadModulesDynamically | ||||||
loadModulesDynamically(remoteModules: Array
|
||||||
|
Loads modules and handles hooking correctly.
Parameters :
Returns :
void
|
| loadUrlRemotes |
loadUrlRemotes()
|
|
Retrieves the remotes list from the URL.
Returns :
ApplicationRemotePlugins
Returns the list of remotes. |
| markPluginsAsLoaded |
markPluginsAsLoaded()
|
|
Returns :
void
|
| mergeMFRemotes | ||||||||
mergeMFRemotes(mfRemotes: ApplicationRemotePlugins[])
|
||||||||
|
Takes a list of remotes and turns it into an object containing union of corresponding remotes. Example
Parameters :
Returns :
ApplicationRemotePlugins
Returns object with merged remotes. Example
|
| refreshHooks |
refreshHooks()
|
|
Will refresh all current registered hooks.
Returns :
void
|
| resolveRemotePlugins | ||||||||
resolveRemotePlugins(remoteModules: Array
|
||||||||
|
Loads plugins by resolving the remote NgModules and injecting it. Also attaching the hooks onto the root injector.
Parameters :
Returns :
void
|
| allPluginsLoaded$ |
Type : Observable<boolean>
|
| injectors$ |
Type : Observable<EnvironmentInjector>
|
|
Emits all injectors of already loaded plugins on subscription. |
| pluginDetails$ |
Type : Observable<literal type>
|
|
Emits all plugin details of already loaded plugins on subscription. |
| refresh$ |
Type : Observable<void>
|
|
Emits once remotePlugins have been resolved. |