Advanced Livewire: JavaScript Component Layer

By @samuel · 2021-10-02 17:11

Advanced Livewire: JavaScript Component Layer

  • By @wizjo · 2022-06-06 05:47 (edited)

    What is benefit of doing like this, instead of using wire:click="save" and entangling "editing" value? Or is the aim to show that you can, not necessary that it is better?

    • By @samuel · 2022-06-06 07:48

      Yeah, the point is to show that it can be used. In some contexts it is better and it lets you do things you couldn't do otherwise. And most importantly, it makes you aware of the security implications — that any of your public methods or properties can be accessed from the frontend, even if you don't expose them in Blade.

      • By @wizjo · 2022-06-06 07:59

        Thank you and hope you will cover this topic (this special cases where we can benefit from calling components this way) and show some examples in future episodes =).