Posts by guastallaigor • 1,294 points
68 posts
-
4
votes1
answer4066
viewsA: jwt authentication with vuejs
In this case, as I said in the comments, I usually save the JWT token in the Torage locale. First of all about route blocking, I usually block any and all requests by creating one interceptor in…
-
1
votes1
answer396
viewsA: Using variables dynamically in Vue
To achieve exactly the result you want, through the code, missed only you put the :class or v-bind:class that will work. Below: <div v-for="(value, propertyName) in user"> <div…
-
1
votes1
answer183
viewsA: Starting a Project Vue 2
I’ve seen some frameworks of components for Vuejs2 and the ones I enjoyed most working on are: Vuetify, being this one framework components with Material Design; In the case of Vuetify, it is…
vue.js-2answered guastallaigor 1,294 -
0
votes2
answers102
viewsA: Error creating global Filters with vuejs
You probably missed importing the desired filter. What I advise to do in case of a global filter: Create a separate js file, in a Filters folder for example. Each file will be a filter, example…
-
1
votes1
answer909
viewsA: How to use Emit and computed/watch
If I understand correctly, in this case in my opinion the best approach is using the Sync Modifier. Basically, for you to transmit the value that is being typed in the component "child", in case the…
-
1
votes1
answer780
viewsA: Pick up keystroke event with Vuejs
In accordance with the documentation of Vuejs2, there are several keyboard modifiers, as you showed up on your @keyup.enter. In the case of the ESC button, there is the .esc, such as, for example,…
vue.js-2answered guastallaigor 1,294 -
0
votes1
answer451
viewsA: Import js file in vuejs and Laravel template
To import files .js in an archive .vue, I usually use the import (import syntax), goes below: import forms from './assets/js/pages/forms'; // verifique se o diretório está correto If js own a…
-
0
votes2
answers482
viewsA: Style inside Vue.Component
Updated response: If I understand correctly, one way to solve it, is you create the component Color within the "parent" component, i.e., for nay create a new file/separate component for the…
-
0
votes0
answers41
viewsQ: Reuse computed properties in Vuejs2
I have a calculation of totals of certain values in a pagination. This calculation is in a computed Property inserted into a component. The problem that I have another similar component that needs…
-
1
votes1
answer169
viewsA: The project does not recognize the Vue.js v-layout directive
Probably the problem is that the v-layout among others tags that you are utilizing throughout your <template>, well with the teacher uses, is the Vuetify, where is a framework of components…
vue.jsanswered guastallaigor 1,294 -
0
votes1
answer1784
viewsA: How to give a "Refresh" on the page in Vue
I did not understand very well, I would need to check the code to verify exactly this communication, but it will probably be necessary to use a watch or computed Property in props or any of it, in…
-
0
votes2
answers115
viewsA: Create component via Vue.js
You must have used another, but only to be registered for those who do not know, I recommend the use of Vuetify. Has a complete documentation, is always updating, is simple and great to work. In the…
-
0
votes1
answer61
viewsA: problems using Laravel Frameworks
From what I checked, the problem that is occurring is about which URL to access when climbing the server, correct? If so, check if you have the .env created at the root of your application.…
-
2
votes1
answer166
viewsA: Pass Mysql query to Eloquent Laravel
I may be wrong but I think the mistake is in your whereRaw. Try without separating the array, as below: ->whereRaw('order_id NOT IN (SELECT order_id FROM timelines WHERE supplier_approved_id )')…
-
3
votes1
answer1038
viewsA: Ruoting with Laravel and Vuejs
I answered something similar here in the first question of another member. I will try to help with what I know: First you will need an editor, such as Atom or Vscode, or any other that supports and…
-
1
votes1
answer1105
viewsA: Access-Control-Allow-Origin error
I had a problem a while ago with this trying to make requests in the Google Maps API, and this error occurred on the front end (Vuejs2), but through Postman worked. I didn’t understand the problem,…
-
0
votes1
answer40
viewsA: I have many INNER JOIN in the query, can you minimize?
I have no knowledge in optimizing queries, but I believe that one way to optimize is with the use of indexes. Check which indexes and if there are any that exist in your tables, with the exception…
mysqlanswered guastallaigor 1,294 -
1
votes1
answer288
viewsA: Questions about Vue js Pusher
I’m new to Stackoverflow, and I don’t know if I understand you very well, but I’ll try to help. How do I create this API folder inside the music-db folder? Answer: Probably the tutorial refers to an…
vue.jsanswered guastallaigor 1,294