Closed JakePerillano closed 7 years ago
Hi @ratiw! Thanks for replying, can I ask another question?
What if i am importing my components from a different folder let say outside the current location of my main.js? would that be possible?
Many thanks!
Of course, that totally possible. You just have to use relative path to access that folder.
Hi @ratiw still a newbie of using vue, and been trying your vuetable but I encountering some parse error.
Module parse failed: C:\xampp\htdocs\ProjectLaravel\PROJ\node_modules\vue-tables-2\lib\methods\render.js Unexpected token (17:9)
Here is my webpack.config.js `var webpack = require('webpack');
var fileName = "list.js"; //source and compiled filename var entryFile = "./public/js/Core/"+fileName; var destinationFolder = "./public/js/Core/compiled";
module.exports = { entry: entryFile,
}; `
And my JS file `var VueTables = require('vue-tables-2');
Vue.use(VueTables.client, { compileTemplates: true, highlightMatches: true, pagination: { dropdown:true, chunk:5 }, filterByColumn: true, texts: { filter: "Search:" }, datepickerOptions: { showDropdowns: true } });
new Vue({ el : '#brandVue',
}); `
Thanks @ratiw for the help!