Browse Source

Add $event to README

Caleb Porzio 5 years ago
parent
commit
cf3a6a6a67
1 changed files with 12 additions and 0 deletions
  1. 12 0
      README.md

+ 12 - 0
README.md

@@ -108,9 +108,11 @@ And 4 magic properties:
 | --- |
 | --- |
 | [`$el`](#el) |
 | [`$el`](#el) |
 | [`$refs`](#refs) |
 | [`$refs`](#refs) |
+| [`$event`](#event) |
 | [`$dispatch`](#dispatch) |
 | [`$dispatch`](#dispatch) |
 | [`$nextTick`](#nexttick) |
 | [`$nextTick`](#nexttick) |
 
 
+
 ### Directives
 ### 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`
 ### `$dispatch`
 **Example:**
 **Example:**
 ```html
 ```html