Create a FeatureAppScope which includes validating externals, binding
all available Feature Service dependencies, and calling the create
method
of the FeatureAppDefinition.
Throws an error if Feature Services that the
FeatureAppDefinition provides with its ownFeatureServices
key fail to
be registered.
Throws an error if the required externals can't be satisfied.
Throws an error if the required Feature Services can't be satisfied.
Throws an error the FeatureAppDefinition's create
method
throws.
A FeatureAppScope for the provided Feature App ID and
FeatureAppDefinition. A new scope is created for every call of
createFeatureAppScope
, even with the same ID and definiton.
The definition of the Feature App to create a scope for.
Load a FeatureAppDefinition using the module loader the FeatureAppManager was initilized with.
Throws an error if no module loader was provided on initilization.
An AsyncValue containing a promise that resolves with the loaded FeatureAppDefinition. If called again with the same URL it returns the same AsyncValue. The promise rejects when loading fails, or when the loaded bundle doesn't export a FeatureAppDefinition as default.
A URL pointing to a FeatureAppDefinition bundle in a module format compatible with the module loader.
Optional
moduleType: stringThe module type of the FeatureAppDefinition bundle. This value can be used by the provided FeatureAppManagerOptions.moduleLoader.
Preload a FeatureAppDefinition using the module loader the FeatureAppManager was initilized with. Useful before hydration of a server rendered page to avoid render result mismatch between client and server due missing FeatureAppDefinitions.
Throws an error if no module loader was provided on initilization.
A URL pointing to a FeatureAppDefinition bundle in a module format compatible with the module loader.
Optional
moduleType: stringThe module type of the FeatureAppDefinition bundle. This value can be used by the provided FeatureAppManagerOptions.moduleLoader.
Generated using TypeDoc
The
FeatureAppManager
manages the lifecycle of Feature Apps.