Posts by Leonardo Nakao • 159 points
6 posts
-
1
votes2
answers31
viewsA: Render different Vue.JS components within a v-for directive
What you want is to render components dynamically, for this follows an example: <div v-for="(icone, i) in icones" :key="i"> <component v-bind:is="icone"></component> </div>…
-
3
votes2
answers72
viewsA: Two identical arrays returning false when compared
When working with Arrays and Objects, keep in mind that you always manipulate a variable reference, not its value itself. I’ll leave an article explaining below:…
-
-1
votes1
answer763
viewsA: React Axios Network Error
Check that your server IP has not been changed unintentionally. When working with requests, or asynchronous functions (await) in general, always use Try{ ... } catch { ... } to handle the error:…
-
1
votes1
answer67
viewsA: I wanted the help of how to create a public link to my profile with php (meusite.com/usuario) as in Linkedin and instagram
To create custom / friendly Urls, you will need to use some route system in your project. Basically it is a place where you specify the Urls that your site/api has and which file will run when each…
phpanswered Leonardo Nakao 159 -
1
votes3
answers77
viewsA: Pass two variables together with the form through the ajax
Since you are sending a formData, to upload the file, you need to add these two variables inside it. You can do it this way: var usuario_cod = document.getElementById("usuario_cod"); var line_cod =…
-
4
votes2
answers54
viewsA: Array.pop() not working
In Javascript, we do not work with arrays using named keys, when we try to do so, our array will be treated as an Object. Therefore, when you perform: convidados[nome] = { ... } You’re not adding…
javascriptanswered Leonardo Nakao 159