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?
2 Antworten
+ 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>
+ 1
Who downvoted me? Why? 😠