Web Analytics
 Livewire Antar Livewire Dengan Events

Livewire Antar Livewire Dengan Events


Livewire A ( Kirim Data )

public function mulai()

{

// dd("x");

// Dispatch the event with the correct data

$menu = "";

$this->dispatch('menu', $menu);

 

// Optionally update the component's state

//$this->tampil = 'mulai';

}

 

 

 

Livewire B ( Terima Data )

#[On('menu')]

public function mulai(string $menu)

{

// dd($menu);

//dd("ok");

//$x = "mulai";

$this->tampil = $menu;

}


Lanjut Part : 1
Jam : 05:13:30
Durasi Part : 0:0:1
Durasi Total : 0:0:1

Punya Pertanyaan , Silahkan Whatsapp Langsung
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1
Theme Customizer

Theme Styles