Answers for "passing livewire variable in alpine js"

0

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') }">
Posted by: Guest on October-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language