Skip to content

Commit 8578d8b

Browse files
alxdarkchrisvfritz
alxdark
authored andcommitted
Update custom-directive.md (#350)
components now come before custom directives in guide.
1 parent 411075e commit 8578d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/custom-directive.md

+1-1
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)