Skip to content

Commit d425da3

Browse files
authored
fix: typo (#1462)
1 parent ce4ef7c commit d425da3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/reusability/custom-directives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ A directive definition object can provide several hook functions (all optional):
111111
const myDir = {
112112
// called before bound element's attributes
113113
// or event listeners are applied
114-
created(el binding, vnode, prevVnode) {
114+
created(el, binding, vnode, prevVnode) {
115115
// see below for details on arguments
116116
},
117117
// called right before the element is inserted into the DOM.
@@ -161,7 +161,7 @@ The `binding` argument would be an object in the shape of:
161161
```js
162162
{
163163
arg: 'foo',
164-
modifiers: { baz: true },
164+
modifiers: { bar: true },
165165
value: /* value of `baz` */,
166166
oldValue: /* value of `baz` from previous update */
167167
}

0 commit comments

Comments
 (0)