Skip to content

Commit 884012a

Browse files
committed
update custom-directive section
ref: vuejs/v2.vuejs.org#350
1 parent 1e1de1e commit 884012a

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
### エレメントディレクティブ
154154

155-
いくつのケースでは、属性としてよりむしろカスタム要素の形でディレクティブを使いたい場合があります。これは、Angular の "E" モードディレクティブの概念に非常に似ています。エレメントディレクティブ (element directive) は軽量な代替を本格的なコンポーネントとして提供します(ガイドの後半で説明されています)。カスタム要素をディレクティブのように登録できます:
155+
いくつのケースでは、属性としてよりむしろカスタム要素の形でディレクティブを使いたい場合があります。これは、Angular の "E" モードディレクティブの概念に非常に似ています。エレメントディレクティブ (element directive) は軽量な代替を本格的なコンポーネントとして提供します(ガイドの前半で説明されています)。カスタム要素をディレクティブのように登録できます:
156156

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

0 commit comments

Comments
 (0)