|
@@ -47,7 +47,7 @@ There are 5 directives available to you:
|
|
|
|
|
|
Here's how they each work:
|
|
Here's how they each work:
|
|
|
|
|
|
-### x-data
|
|
|
|
|
|
+### `x-data`
|
|
---
|
|
---
|
|
Example: `<div x-data="{ foo: 'bar' }">...</div>`
|
|
Example: `<div x-data="{ foo: 'bar' }">...</div>`
|
|
|
|
|
|
@@ -57,7 +57,7 @@ Structure: `<div x-data="[JSON data object]">...</div>`
|
|
|
|
|
|
Think of it like the `data` property of a Vue component.
|
|
Think of it like the `data` property of a Vue component.
|
|
|
|
|
|
-### x-bind
|
|
|
|
|
|
+### `x-bind`
|
|
---
|
|
---
|
|
Example: `<input x-bind:type="inputType">`
|
|
Example: `<input x-bind:type="inputType">`
|
|
|
|
|