user image

Yasen Sayed
Published in : 2022-02-11

How can i pass data from blade template to vue component?

Laravel

Hello guys, 

Please, how can I'm passing data from the blade file to the Vue component, bind the routes without using APIS?

Best regards.

Comments

Mohamed Atef Date : 2022-02-11

Best answers

51

Best answers

51

I am not sure but can't you use {{$data}} ? 
I searched on the internet and I found some answers that says that you can use components like 

<login hashid="{{ $list->hashid }}"></login>

Or you can use 

<login b-bind:hashid="{{ $list->hashid }}"></login>

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

[solved] Class "App\Exceptions\Client" not found
Publish date: 2022-02-09 | Comments: 2
How to pass valiables to 404 error page in laravel?
Publish date: 2022-02-21 | Comments: 2
[solved] Nginx 413 Request Entity Too Large - Laravel
Publish date: 2022-02-01 | Comments: 7
laravel installation error with composer install
Publish date: 2022-02-23 | Comments: 2