unmountIntersect

Commons
stable

Tear down the IntersectionObserver attached by the v-intersect directive on an element for the current component instance. Called in the directive's unmounted hook.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

el
required
IIntersectHtmlElement
The element that owns the _observe map populated by mountIntersect().
binding
required
IIntersectDirectiveBinding
The Vue directive binding object; its instance.$.uid is used as the map key to locate the correct observer entry.

API

Return value

The value returned by this util.

No return value. The observer is stopped and the entry removed from the element.

Usage

Examples

Ready-to-paste usage snippets.

Directive teardown

typescript