github alpinejs/alpine v2.2.0

latest releases: v3.13.10, v3.13.9, v3.13.8...
4 years ago

Added

  • $watch('prop', callback) has been added for watching data property changes.
<div x-data="{ open: false }" x-init="$watch('open', value => console.log(value))">
    <button @click="open = ! open">Toggle Open</button>
</div>

(In the example, if the button is clicked, the value will be echoed out)

Don't miss a new alpine release

NewReleases is sending notifications on new releases.