Answers for "livewire from one component to another"

PHP
0

livewire from one component to another

// component A
  public function functionCallComponentB(){
      $this->emit('callFunctionComponentB', 'optional_parameter');
  }

// component B
  public $listeners = [
      "callFunctionComponentB" => "functionReceiverCallFromComponentA"
  ];

  public function functionReceiverCallFromComponentA(){
      dd("called");
  }
Posted by: Guest on January-12-2022

Code answers related to "livewire from one component to another"

Browse Popular Code Answers by Language