Skip to content

Commit 7de50ae

Browse files
committed
1 parent fd605a8 commit 7de50ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/guide/custom-directive.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ directives: {
4545

4646
ディレクティブの定義オブジェクトは、いくつかのフック関数を提供しています (全てオプション):
4747

48-
- `beforeMount`: ディレクティブが初めて要素に束縛された時、そして親コンポーネントがマウントされる前に呼ばれます。ここは1度だけ実行するセットアップ処理を行える場所です。
48+
- `created`: called before the bound element's attributes or event listeners are applied. This is useful in cases where the directive needs to attach event listeners that must be called before normal `v-on` event listeners.
49+
50+
- `beforeMount`: called when the directive is first bound to the element and before parent component is mounted.
4951

5052
- `mounted`: 束縛された要素の親コンポーネントがマウントされた時に呼ばれます。
5153

0 commit comments

Comments
 (0)