Skip to content

Commit a60a992

Browse files
committed
Remove ElementDirective example, as this functionality was deprecated.
1 parent 836374a commit a60a992

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/guide/custom-directive.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,6 @@ Vue.directive('demo', function (value) {
7575
})
7676
```
7777

78-
### Element Directives
79-
80-
In some cases, we may want our directive to be used in the form of a custom element rather than as an attribute. This is very similar to Angular's notion of "E" mode directives. Element directives provide a lighter-weight alternative to full-blown components (which are explained earlier in the guide). You can register a custom element directive like so:
81-
82-
``` js
83-
Vue.elementDirective('my-directive', {
84-
// same API as normal directives
85-
bind: function () {
86-
// manipulate this.el...
87-
}
88-
})
89-
```
90-
9178
We'll explore the arguments passed into these hooks (i.e. `el`, `binding`, `vnode`, and `oldVnode`) in the next section.
9279

9380
## Directive Hook Arguments

0 commit comments

Comments
 (0)