skip to Main Content

Javascript – Why passing array from livewire info js code I got error?

On laravel 10 site using docs at https://dev.to/koossaayy/laravel-livewire-multiple-selection-with-virtual-select-1f87 I try to make multiselection, but copypasting code of the project I got "Uncaught SyntaxError: Unexpected token ':' "error on blade code : <div> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/virtual-select.min.js" integrity="sha256-Gsn2XyJGdUeHy0r4gaP1mJy1JkLiIWY6g6hJhV5UrIw=" crossorigin="anonymous"></script> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/virtual-select.min.css" integrity="sha256-KqTuc/vUgQsb5EMyyxWf62qYinMUXDpWELyNx+cCUr0="…

VIEW QUESTION

Laravel – Livewire component update with new data

I need help with the Livewire component update based on the select dropdown. class FutureTreeMapChart extends Component { public $segment = 'N50'; public $expiry = '2024-02-25'; public $data; public function fetchTreeMap() { if (!empty($this->segment) && !empty($this->expiry)) { .....some codes to…

VIEW QUESTION
Back To Top
Search