Compile a component with Angular-specific defaults
Compilation options
Promise resolving to compilation result
Clean up resources
Get Babel instance for direct use
Babel instance
Get a component from the registry
Component name
Component namespace
Optionalversion: stringComponent version
Component if found
Get runtime version
Runtime version string
Initialize the React runtime with Angular-specific configuration
Optionalconfig: LibraryConfigurationOptional library configuration
OptionaladditionalLibraries: ExternalLibraryConfig[]Optional additional libraries to merge
Optionaloptions: { debug?: boolean }Optional options including debug flag
Promise resolving when runtime is ready
Check if runtime is initialized
true if initialized
Eagerly start loading the React runtime in the background. Call this at app startup (e.g., in APP_INITIALIZER or after auth) so that React, ReactDOM, and Babel are already downloaded from CDN by the time the user opens an interactive component artifact.
Two-phase approach:
<link rel="preload"> hints so the browser starts
downloading the CDN scripts in parallel with other page work.initialize() which creates <script> tags and
executes them. If the preload hints already fetched the bytes, the
script load is nearly instant (served from HTTP cache).Safe to call multiple times — the underlying initialize() deduplicates. Does not block: returns immediately, initialization continues in background.
Register a component in the registry
Component name
Compiled component
Component namespace
Component version
Component metadata
Transpile JSX code directly
JSX code to transpile
Optionalfilename: stringOptional filename for better error messages
Transpiled JavaScript code
Angular-specific adapter for the React runtime. Manages the integration between Angular services and the platform-agnostic React runtime.