|
@@ -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
|