Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

passing livewire variable in alpine js

You can share data between livewire and apline js using : @entangle

class Counter extends Component
{
    public $showDropdown = false;
}

<div x-data="{ open: @entangle('showDropdown') }">
 
PREVIOUS NEXT
Tagged: #passing #livewire #variable #alpine #js
ADD COMMENT
Topic
Name
9+4 =