Skip to content

Update custom-directive.md to link to VNode info where VNodes are first mentioned #1855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/v2/guide/custom-directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

<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>

- `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.
Expand Down