The v-mutate
directive utilizes the Mutation Observer API. It provides an easy to use interface for detecting when elements are updated.
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"
Ниже приведена коллекция простых и сложных примеров.
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).
Готовы к большему? Продолжить чтение с: