Class EmbeddedViewRef<C>Abstract

Type Parameters

  • C extends object

Hierarchy (View Summary)

Constructors

Accessors

  • get context(): C
  • The context for this view, inherited from the anchor element.

    Returns C

  • get destroyed(): boolean
  • Reports whether this view has been destroyed.

    Returns boolean

    True after the destroy() method has been called, false otherwise.

  • get first(): ChildNode
  • the first node for this embedded view.

    Returns ChildNode

  • get last(): ChildNode
  • the last node for this embedded view.

    Returns ChildNode

  • get rootNodes(): Node[]
  • The root nodes for this embedded view.

    Returns Node[]

Methods

  • insert view after the node.

    Parameters

    • node: ChildNode

    Returns void

  • insert view before the node.

    Parameters

    • node: ChildNode

    Returns void

  • throw error if any changes has been made

    Returns void

  • Destroys this view and all of the data structures associated with it.

    Returns void

  • remove the root nodes from the view, but keep reference to them.

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

    Returns void

  • apply change detection

    Returns void

  • apply changes now, will not effect the state of the detector wither if attached ot not.

    Returns void

  • A lifecycle hook that provides additional developer-defined cleanup functionality for views.

    Parameters

    • callback: Function

      A handler function that cleans up developer-defined data associated with a view. Called when the destroy() method is invoked.

    Returns { unsubscribe(): void }

  • apply all the not emitted changes, and continue emit changes now.

    Returns void