|
@@ -13,7 +13,7 @@ Here's a simple example of using `x-modelable` to expose a variable for binding
|
|
|
|
|
|
```alpine
|
|
|
<div x-data="{ number: 5 }">
|
|
|
- <div x-data="{ count: 0 }" x-modelable="count" x-model="numberOfItems">
|
|
|
+ <div x-data="{ count: 0 }" x-modelable="count" x-model="number">
|
|
|
<button @click="count++">Increment</button>
|
|
|
</div>
|
|
|
|
|
@@ -24,7 +24,7 @@ Here's a simple example of using `x-modelable` to expose a variable for binding
|
|
|
<!-- START_VERBATIM -->
|
|
|
<div class="demo">
|
|
|
<div x-data="{ number: 5 }">
|
|
|
- <div x-data="{ count: 0 }" x-modelable="count" x-model="numberOfItems">
|
|
|
+ <div x-data="{ count: 0 }" x-modelable="count" x-model="number">
|
|
|
<button @click="count++">Increment</button>
|
|
|
</div>
|
|
|
|