Inline Scripts
You can listen for livewire:load and place any JavaScript there.
<div>
<!--- Your component's template --->
<script>
document.addEventListener('livewire:load', function () {
// Your JS here.
})
</script>
</div>Last updated
Was this helpful?