소스 검색

Add $event to README

Caleb Porzio 5 년 전
부모
커밋
cf3a6a6a67
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      README.md

+ 12 - 0
README.md

@@ -108,9 +108,11 @@ And 4 magic properties:
 | --- |
 | [`$el`](#el) |
 | [`$refs`](#refs) |
+| [`$event`](#event) |
 | [`$dispatch`](#dispatch) |
 | [`$nextTick`](#nexttick) |
 
+
 ### Directives
 
 ---
@@ -416,6 +418,16 @@ These behave exactly like VueJs's transition directives, except they have differ
 
 ---
 
+### `$event`
+**Example:**
+```html
+<input x-on:input="alert($event.target.value)">
+```
+
+`$event` is a magic property that can be used within an event listener to retrieve the native browser "Event" object.
+
+---
+
 ### `$dispatch`
 **Example:**
 ```html