1
0
Caleb Porzio 3 жил өмнө
parent
commit
fe2dc7dbea

+ 2 - 2
packages/docs/src/en/directives/modelable.md

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