Posts by João • 69 points
16 posts
-
1
votes1
answer296
viewsA: Components in Spain
Vue.js uses Virtual Dom to render components, so if you need to have 10 cards on a page for example, it’s more practical to create only 1 card component and render them 10x using only one base…
-
0
votes1
answer499
viewsA: Upload an array of images with Node.js, Multer and Sharp
the problem was basically in "req.file" which is only used for single uploads, when using array for uploads you need to use "req.files[Indice]". then it was like this: const arrayImages = []; //Para…
-
0
votes3
answers358
viewsA: JS: store selected values in array
Good night to you, Roberto. Just after you draw a number check if there is any identical number in the "drawn" array, if it exists, you run the getBingo() function again (this is called…
-
0
votes1
answer499
viewsQ: Upload an array of images with Node.js, Multer and Sharp
In addition to uploading the images I do a treatment on them with Sharp, uploading only 1 image with upload.single('image') the treatment is executed and the image is saved, but when I try an array…
-
0
votes1
answer196
viewsA: V-if to check if checkbox is checked
A simple example, we have the checkbox associated with an object called checked <input type="checkbox" id="checkbox" v-model="checked"> <label for="checkbox">Você é maior de 18…
-
0
votes2
answers835
viewsA: How to view an image saved in another project folder in Vue?
you are inside the folder Components, soon you will need to have '../' to get out of that folder and stay in src, after that it is necessary to enter Assets, then we have '../Assets/' and then we…
-
1
votes1
answer103
viewsA: Pass an input value from page 1 to another input on page 2
Good evening Bruno. Come on. I corrected your code and commented, I hope it helps! If you want to test: https://codepen.io/freitas49/pen/QPezgJ <script> function calculadora() { var v1 =…
-
0
votes1
answer38
viewsA: Store a get in an object and bide from it. Vue.js
My solution was: created() { const service = new CardapioService(); service.getCardapio() .then((data) => { this.produtos = data.message; console.log(this.produtos); this.loading = false; }) }, I…
-
0
votes1
answer38
viewsQ: Store a get in an object and bide from it. Vue.js
I have a working GET method (I am not using Axios) and I would like to save its result in an object (this result can be varied, because this GET returns an object with several other objects. I tried…
-
0
votes2
answers6612
viewsQ: Problems using v-Mask (Vue.JS)
I wanted to use a mask on some componentized inputs, but it doesn’t work, it follows the respective code snippets: in main.js we have: import VueMask from 'v-mask' Vue.use(VueMask); in my component,…
-
0
votes2
answers127
viewsQ: Organize data from a Binding date into a table
I’m trying to get the data through a data-Binding and mount a table (from bootstrap) using a V-for, but it doesn’t happen as I expected. Table structure: <table class="table table-borderless">…
-
1
votes1
answer144
viewsQ: filter routes by a prop in the meta. Vue.js
I have a prop in the goal of some routes called "displayname", I wanted to play all routes that had this prop in a navbar.. I have tried but unsuccessfully, so far I can pull all routes to the Nav…
-
0
votes1
answer43
viewsQ: How to use a cont variable p/ create an array of Names in input’s?
I have a button where I can add fields to my form, and I need each new field to have a different name, I thought of using name = "products[]", and so create an array and use a foreach on the back,…
-
0
votes2
answers80
viewsA: Am I resizing and setting the HTML page "correctly"?
Dude, avoid making alignments using these "magic" numbers in px, because that way your site will only be correctly aligned to the screen size you made the development, except if you use media…
-
-1
votes2
answers91
viewsQ: When inserting into a vector always overrides the previously inserted value
In my code when adding a contact (X), and see the contact list, I have contact X, however when adding another contact (Y), and go see the list, the contact Y replaces the X, how can I add several in…
-
0
votes1
answer203
viewsQ: Share Variables between PHP files
Good morning, I would like to share the data entered in an input between 2 files. In the Form action I use the validation file, to check the login and password, but I wanted the data typed in these…