Questions tagged as 'vue.js'

0
answers

Transfer (paste) files from the clipboard to a file input?

I have the following input of files: <input class="botao" @change="carregarFoto" type="file" name="photo" accept="image/*"> <img :src="foto" style="width:192px;height:108px;" /> carregarFoto (e) { var arquivo =...
asked by 03.10.2017 / 18:49
0
answers

VueJS Class Condition

I have a menu and wanted to know if I have a condition to add a class depending on the child class. For example: <ul :class="{ 'open' : TemClasseNoFilho }"> <li v-for="item in list" :class="{ 'active' : $route.nome == item.rot...
asked by 25.09.2017 / 15:11
1
answer

problems with using Laravel FrameWorks

I'm following a video lesson to understand how vue behaves, however this video lesson is on top of a PHP project, I understand little of PHP. I did as I did in the video below; 1 - CRUD at LARAVEL & VUEjs - Webpack, Laravel...
asked by 28.09.2017 / 13:30
1
answer

Using multiple files js Vue in Laravel

I am using Laravel v5.5 to start a personal project and I will use Vue.js, I did not find a very didactic content on the internet, how do I use other .js files? example: /js/login.js for login /js/dashboard.js for the dashboard Do I need t...
asked by 16.09.2017 / 01:22
0
answers

Error with trying to insert information with routes

In api.php I have this code: Route::group(['middleware' => 'api'], function() { Route::post('clube/addClube', function(Request $request) { return App\clubes::addClube(['name' => $request -> input(['name'])]); }); }...
asked by 09.08.2017 / 04:34
1
answer

npm ERR! missing script: start

I'm having this error while trying to start a vue-cli. The installation ran smoothly: villas:vue villas$ npm start npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm ERR! /Users/villas/.npm/_logs/2017-...
asked by 25.08.2017 / 02:47
0
answers

You may have an infinite update loop in a component render function

This code is a list of links that is used inside a dropdown menu. I started getting this message after I decided to set a color pattern and fonts for my site and I decided to make changes to the components via v-bind. <template> &l...
asked by 24.08.2017 / 16:22
1
answer

How to import a package that has punctuation in the name in VueJS

I need to import a package into VueJS, whose name is 'vue-charts.js', and Vue is reporting an error that can not find the file specified. I have already tried to rename the package directory but I could not. If anyone knows how to do this and ca...
asked by 07.08.2017 / 15:10
2
answers

Laravel directing HTTP method to erroneous function on Controller

I have a project in Laravel and Vue.js where I have a function in Vue.js that sends a post with the data of a form, so far so good, except that when the this.$http.post() function makes the request for the backend, th...
asked by 13.07.2017 / 23:41
0
answers

vuejs vuex firebase

I have a problem with mounting my next firebase reference export default { firebase () { return { gastos: db.ref('user/${this.uid}/shop/'), } }, computed: { uid () {...
asked by 05.08.2017 / 03:44