Skip to content

Commit bef90c7

Browse files
author
alxdark
authored
Merge pull request #1 from alxdark/alxdark-patch-1
Update custom-directive.md
2 parents 411075e + d4659ce commit bef90c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/custom-directive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Vue.directive('demo', function (value) {
152152

153153
### Element Directives
154154

155-
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 later in the guide). You can register a custom element directive like so:
155+
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:
156156

157157
``` js
158158
Vue.elementDirective('my-directive', {

0 commit comments

Comments
 (0)