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

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

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

API

Valeur de retour

La valeur retournée par cet util.

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

Usage

Exemples

Extraits de code prêts à coller.

Directive teardown

typescript