File

core/plugins/plugins-loader.service.ts

Index

Methods

Constructor

constructor(plugins: Array>, injector: EnvironmentInjector, pluginsResolveService: PluginsResolveService)
Parameters :
Name Type Optional
plugins Array<RemoteModuleFactoryWithMetadata<string>> No
injector EnvironmentInjector No
pluginsResolveService PluginsResolveService No

Methods

Protected loadModule
loadModule(remoteNgModule: NgModuleRef | Type, parentInjector: Injector)
Type parameters :
  • T
Parameters :
Name Type Optional
remoteNgModule NgModuleRef<T> | Type<T> No
parentInjector Injector No
Returns : { moduleRef: NgModuleRef<T>; remoteNgModule: any; injector: any; }
Protected loadModules
loadModules(remoteModules: Array>, injector: Injector)

Uses the provided remoteModule factories to load and instantiate the modules. The provided injector is used as a parent to create the module instances.

Parameters :
Name Type Optional
remoteModules Array<RemoteModuleFactoryWithMetadata<string>> No
injector Injector No
loadModulesDynamically
loadModulesDynamically(remoteModules: Array>)

Loads modules and handles hooking correctly.

Parameters :
Name Type Optional
remoteModules Array<RemoteModuleFactoryWithMetadata<string>> No
Protected loadProviders
loadProviders(providers: Provider[], name: string, parentInjector: Injector)
Parameters :
Name Type Optional
providers Provider[] No
name string No
parentInjector Injector No

results matching ""

    No results matching ""