Interface FeatureAppLoaderElement

A custom element defined by defineFeatureAppLoader as feature-app-loader.

It is possible to pass two slots to the feature-app-loader element. One slot named loading is rendered while the Feature App module is loading. The other one named error is rendered if the Feature App module could not be loaded and is also passed to the underlying feature-app-container element (@see FeatureAppContainerElement).

Hierarchy

  • HTMLElement
    • FeatureAppLoaderElement

Properties

baseUrl?: string

The absolute or relative base URL of the Feature App's assets and/or BFF.

config?: unknown

A config object that is passed to the Feature App's create method.

featureAppId: string

The Feature App ID is used to identify the Feature App instance. Multiple Feature App Loaders with the same featureAppId will render the same Feature app instance. The ID is also used as a consumer ID for dependent Feature Services. To render multiple instances of the same kind of Feature App, different IDs must be used.

featureAppName?: string

The Feature App's name. In contrast to the featureAppId, the name must not be unique. It can be used by required Feature Services for display purposes, logging, looking up Feature App configuration meta data, etc.

src: string

The URL of the Feature App's module bundle. If baseUrl is specified, it will be prepended, unless src is an absolute URL.

Generated using TypeDoc