Skip to content

Commit

Permalink
docs: fix typo - prevNode should be prevVnode (#2747)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchaoNJ committed Mar 13, 2024
1 parent 1aca9b3 commit a8cf7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/reusability/custom-directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Directive hooks are passed these arguments:
- `dir`: the directive definition object.

- `vnode`: the underlying VNode representing the bound element.
- `prevNode`: the VNode representing the bound element from the previous render. Only available in the `beforeUpdate` and `updated` hooks.
- `prevVnode`: the VNode representing the bound element from the previous render. Only available in the `beforeUpdate` and `updated` hooks.

As an example, consider the following directive usage:

Expand Down

0 comments on commit a8cf7bf

Please sign in to comment.