In my blade view.
@foreach($r_templates as $key => $rt)
<button @click="someFunc({{$rt['title'}})">click me</button>
@endforeach
// In my vue script
someFunc(title) { console.log(title); }
the above code seems to not work and it does not have errors too.
but when I change the parameter to 'something', it works.
How do I pass a PHP variable to a vue function?