0

How to use vue.js in laravel for adding to cart?

I want to create shop with laravel & vue.js How can i create CartScreen with vue.js?

27th Oct 2020, 9:10 AM
AmirMohammad Sotudeh
AmirMohammad Sotudeh - avatar
2 Respostas
+ 1
If you already have vue installed it should not be a problem. You can simply create CartScreen.vue(.js without vue-loader) and include in your app.js like this import CartScreen from 'CartScreen.vue'; new Vue({ el: '#app', components: {CartScreen} }) In your blade template write this <div id="app"> <cart-screen></cart-screen> </div>
27th Oct 2020, 10:05 AM
Ore
Ore - avatar
+ 1
Who downvoted me? Why? 😠
27th Oct 2020, 11:29 AM
Ore
Ore - avatar