# Mutation observer

The v-mutate directive utilizes the Mutation Observer API. It provides an easy to use interface for detecting when elements are updated.

# Usage

By default the v-mutate directive will enable all available options in the Mutation Observer API. This can be modified in one of two ways. You can either pass in object with keys for handler and options or use the modifier property of the directive, v-mutate.attr.sub="onMutate"

# API

# Examples

# Options

# Modifiers

The v-mutate directive accepts modifiers for all of the available options in the Mutation Observer API. For brevity, abbreviations are used—attr (attributes), child (childList), sub (subtree) and char (characterData).

Ready for more?

Continue your learning with related content selected by the Team or move between pages by using the navigation links below.
Edit this page on GitHub
Last updated:06/23/2020, 7:59:44 PM