Class CustomComponentInjectionService

Constructors

Methods

  • Renders a custom component in the specified container

    Type Parameters

    • T

    Parameters

    • customComponent: CustomComponentType<T>

      The custom component to render

    • container: ViewContainerRef

      ViewContainerRef where the component should be rendered

    • context: CustomComponentContext

      Component context with parameters and configuration

    Returns null | HTMLElement | ComponentRef$1<T>

    ComponentRef or HTMLElement reference

  • Creates a component object with injector for dynamic component rendering

    Type Parameters

    • T

    Parameters

    • componentType: Type$1<T>

      Component type

    • parameters: CustomComponentParameters = {}

      Parameters to inject

    • OptionalparentInjector: Injector

      Parent injector

    Returns CustomComponent<T>

    Component object with injector

  • Merges custom component options with defaults

    Type Parameters

    • T

    Parameters

    • customOptions: Partial<T>

      Custom component options

    • defaultOptions: T

      Default component options

    Returns T

    Merged options