Ibyar/Aurora
    Preparing search index...

    Class ViewContainerRefAbstract

    Hierarchy (View Summary)

    Index
    • get anchorElement(): Element

      Anchor element that specifies the location of this container in the containing view. Each view container can have only one anchor element, and each anchor element can have only a single view container.

      Root elements of views attached to this container become siblings of the anchor element in the rendered view.

      Access the ViewContainerRef of an element by placing a Directive injected with ViewContainerRef on the element, or use a ViewChild query.

      Returns Element

    • Detaches a view from this container without destroying it. Use along with insert() to move a view within the current container.

      Type Parameters

      • T

      Parameters

      • Optionalindex: number

        The 0-based index of the view to detach. If not specified, the last view in the container is detached.

      Returns EmbeddedViewRef<T> | undefined

    • Moves a view to a new location in this container.

      Parameters

      • oldIndex: number

        The 0-based index of the old location.

      • newIndex: number

        The 0-based index of the new location.

      Returns void