Function replaceElementNow

Replace an element with another one.

  • Parameters

    • element: Element
    • newElement: Element
    • Optionaloptions: { ignoreMove?: boolean }
      • OptionalignoreMove?: boolean

        If true, the DOM watcher instances will ignore the operation of moving the element (so as to not trigger relevant callbacks).

    Returns void