mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 03:14:03 +00:00
Update README.md
This commit is contained in:
parent
0a1552b1f0
commit
ab97f27fd1
1 changed files with 3 additions and 3 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue