mardi 26 mars 2019

Vue: Passing in laravel data as props

I have a blade template where I'm loading Vue components. I have been passing in data as props pretty easily but now I'm trying to figure out how to pass in computed data but can't see how to do it.

***Blade file***

//this works correctly below

<ShopComponent
   :dataItems = "  "
>
</ShopComponent>

//but there are some data in the file that return booleans as a function and that is not working.  See below. 

<ShopComponent
   :showData = "  "
>
</ShopComponent>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire