Skip to content

Commit 41e2de6

Browse files
cxw42phanan
authored andcommitted
Link to VNode info where it is first mentioned (#1855)
Otherwise, VNode is used without definition the first time you encounter it in the Guide. Fixes #1799.
1 parent a9139a1 commit 41e2de6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/v2/guide/custom-directive.md

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ A directive definition object can provide several hook functions (all optional):
6666

6767
- `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).
6868

69+
<p class="tip">We'll cover VNodes in more detail [later](./render-function.html#The-Virtual-DOM), when we discuss [render functions](./render-function.html).</p>
70+
6971
- `componentUpdated`: called after the containing component's VNode __and the VNodes of its children__ have updated.
7072

7173
- `unbind`: called only once, when the directive is unbound from the element.

0 commit comments

Comments
 (0)