diff --git a/README.md b/README.md index 90d28e8..d45daaa 100644 --- a/README.md +++ b/README.md @@ -471,9 +471,9 @@ The component can look roughly like this: }, init() { - $watch('money', () => $wire.set('money', { - value: Math.round(this.value / 100), - currency: this.currency. + $watch('money', money => $wire.set('money', { + value: Math.round(money.value / 100), + currency: money.currency. })) }, }" x-init="init">