Hi, everyone! As many people here, I'm fairly new to Vue. I've watched all of the Vue 2.0 videos here at Laracasts and done all my homework (with a bit of success), jet I'm struggling to find a solution to what looks to be a very simple problem: how do I use in a Laravel app a vue-related npm package?
As an example, I've been trying to use Vue.Draggable, and following their instructions, I've done the following:
Installed the package:
npm install vuedraggable --save
Then, in my app.js file I've required vuedraggable:
var draggable = require('vuedraggable');
Finally, in my blade view I've inserted their sample code:
How to use a vue-related npm package in laravel app
Hi, everyone! As many people here, I'm fairly new to Vue. I've watched all of the Vue 2.0 videos here at Laracasts and done all my homework (with a bit of success), jet I'm struggling to find a solution to what looks to be a very simple problem: how do I use in a Laravel app a vue-related npm package?
As an example, I've been trying to use Vue.Draggable, and following their instructions, I've done the following:
Installed the package:
Then, in my app.js file I've required vuedraggable:
Finally, in my blade view I've inserted their sample code:
And this clearly doesn't work. Any help would be hugely appreciated! Thanks!