Skip to content

Tag: javascript

is There an easy way to get all data from vuejs?

I have this data’s is there a way to get all of these? already tried this._data.forEach but it is not working thanks! Answer Vue uses underscore as a prefix for its internal properties. You should avoid using them. The data object for an instance is accessible via the $data property. https://v2.vuejs.or…

I want to add counter in for loop in each item.(vue.js)

I’m making cart app with Vue. And trying to make quantity counter, but when I click – or + button, all of items quantity also increase or decrease. So it seems like I need to give each key for buttons but I don’t know how to do that. Answer Your num variable shouldn’t be in your compon…

How to make routes case sensitive in Nuxt

I use nuxt.js + vue.js. I need to create case sensitivity of routers. I found the following property: caseSensitive. I’m trying to put it into nuxt.config but it doesn’t work, the transition is possible by links in upper case. If I directly change the file ~project/.nuxt/router.js, everything works correctly.…

Reading excel file into array using javascript

I’m trying to read an excel file and create a multidimensional array in javascript with it. The excel file will look like: I need it to create an array that looks like: So far, I’ve been able to bring up a file selection window, and I believe it’s reading the file, I just think it might not …