up.fragment up:fragment:destroyed
DOM event

This event is emitted after a page fragment was destroyed and removed from the DOM.

If the destruction is animated, this event is emitted after the animation has ended.

The event is emitted on the parent element of the fragment that was removed. If an element with children is destroyed, up:fragment:destroyed is only emitted once for the entire subtree that was removed.


Event properties

event.fragment
required

The detached element that has been removed from the DOM.

Type: Element
event.parent
required

The former parent element of the fragment that has now been detached from the DOM.

Type: Element
event.target
required

The former parent element of the fragment that has now been detached from the DOM.

Type: Element