Skip to content

Commit 89bb604

Browse files
committed
remove outdated and nonsensical example.
1 parent a60a992 commit 89bb604

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/guide/custom-directive.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,6 @@ A directive definition object can provide several hook functions (all optional):
6767
- `componentUpdated`: called after the component has completed an update cycle
6868
- `unbind`: called only once, when the directive is unbound from the element.
6969

70-
For example:
71-
72-
``` js
73-
Vue.directive('demo', function (value) {
74-
console.log(value) // "foo bar baz"
75-
})
76-
```
77-
7870
We'll explore the arguments passed into these hooks (i.e. `el`, `binding`, `vnode`, and `oldVnode`) in the next section.
7971

8072
## Directive Hook Arguments

0 commit comments

Comments
 (0)