From b936472b9733baca35594034e730ceb34bc20635 Mon Sep 17 00:00:00 2001 From: Chris White Date: Mon, 3 Dec 2018 12:05:31 -0500 Subject: [PATCH] Link to VNode info where it is first mentioned Otherwise, VNode is used without definition the first time you encounter it in the Guide. Fixes #1799. --- src/v2/guide/custom-directive.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/v2/guide/custom-directive.md b/src/v2/guide/custom-directive.md index f950449d82..1c39e9a5a8 100644 --- a/src/v2/guide/custom-directive.md +++ b/src/v2/guide/custom-directive.md @@ -66,6 +66,8 @@ A directive definition object can provide several hook functions (all optional): - `update`: called after the containing component's VNode has updated, __but possibly before its children have updated__. The directive's value may or may not have changed, but you can skip unnecessary updates by comparing the binding's current and old values (see below on hook arguments). +

We'll cover VNodes in more detail [later](./render-function.html#The-Virtual-DOM), when we discuss [render functions](./render-function.html).

+ - `componentUpdated`: called after the containing component's VNode __and the VNodes of its children__ have updated. - `unbind`: called only once, when the directive is unbound from the element.