Skip to content
Advertisement

Tag: vue.js

I run into problems when i add “.slice()” to the line of code

I’m new to vue.js. I’m making a fast typing application. Everything was as it should be, but when I wrote and ran this line of code, I got this error in the terminal: **INFO Starting development server… 98% after emitting CopyPlugin ERROR Failed to compile with 1 error 23:59:37 This dependency was not found: core-js/modules/es.array.slice.js in ./node_modules/cache-loader/dist/cjs.js??ref–13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref–1-0!./node_modules/vue-loader-v16/dist??ref–1-1!./src/components/Main.vue?vue&type=script&lang=js To install it,

How to render ordered list base on the specific properly of an object?

I have simple table in vuetify It rendered based on this objects [ { “id”: 275, “group_id”: 119, “url”: “https://cnn.com”, “url_num”: 10, “max_iteration”: 0 }, { “id”: 274, “group_id”: 119, “url”: “https://cnn.com”, “url_num”: 9, “max_iteration”: 0 }, { “id”: 273, “group_id”: 119, “url”: “https://cnn.com”, “url_num”: 8, “max_iteration”: 0 }, { “id”: 272, “group_id”: 119, “url”: “https://cnn.com”, “url_num”: 7, “max_iteration”: 0

How make dynamic breadcrumbs in vue.js?

I would like to have a dynamic breadcrumbs based on where I clicked on a category but I get an error that says my variable is undefined: TypeError: Cannot read properties of undefined (reading ‘homeMenu’). Yet in my getHomeCategory function, the console.log of homeCategory displays Perma’Thèque. I don’t understand how to do it, thanks Here is the code : Answer

Vuejs3/Vuex4 conditional render on promise fulfillment

I have custom objects for holding child objects full of data. The child objects are initiated with null values for all their properties, so the objects can be referenced and their properties filled from remote sources. This creates a lazy-loading setup. This code is going to be extremely trimmed down, but everything relevant should be here: The child then looks

How to delete particular array by selecting checkbox and delete array in Vuejs?

My complete code;- https://codesandbox.io/s/wild-flower-rssg0?file=/src/components/datalist.js I want to delete the array item, When user click on checkbox beside each item. and then click on delete button then the array item record need to be deleted. But now i am getting as, Directly if I click on delete button, i am able to delete the array. But that should happen only after

Nuxt How to send async props

I’ve been having trouble with Nuxt2.15 (Vue.js). I want to send the data from parent component to child component that parent components fetched. And, I want to fetch another data from a child component by useing the data from the parent component. But props data is undefined in the child component. I tried to use “watch” and “computed” in the child

Advertisement