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

46

Best answers

46

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

Laravel clear cache files manually
Publish date: 2022-03-02 | Comments: 2
tymon/jwt-auth 0.5.12 requires illuminate/support ~5.0
Publish date: 2022-02-18 | Comments: 2
Get user location (city - country) from his IP address
Publish date: 2022-03-02 | Comments: 2
I want to make multiple foreign keys in Laravel, can I?
Publish date: 2022-01-27 | Comments: 5
[solved] All assets in laravel storage returns 404
Publish date: 2021-12-14 | Comments: 2
laravel installation error with composer install
Publish date: 2022-02-23 | Comments: 2