Member Junction
    Preparing search index...

    Service to manage React and ReactDOM instances with proper lifecycle. Provides methods for creating and managing React roots in Angular applications.

    Implements

    • OnDestroy
    Index

    Constructors

    Properties

    debug: boolean = ...
    reactReady$: Observable<boolean> = ...

    Methods

    • A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

      Returns void

    • Transpile JSX code to JavaScript

      Parameters

      • code: string

        JSX code to transpile

      • filename: string

        Optional filename for error messages

      Returns string

      Transpiled JavaScript code

    • Wait for React to be ready, with special handling for first component. If bootstrap succeeded but createRoot isn't usable (stale browser cache), forces a re-bootstrap and retries.

      Returns Promise<void>