Answers for "Sharing State Between Livewire And Alpine"

0

Sharing State Between Livewire And Alpine

You can sharing variable between livewire and alpine using : @entangle

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

<div x-data="{ open: @entangle('showDropdown') }">
Posted by: Guest on October-13-2020

Browse Popular Code Answers by Language