Category "vuejs2"

How to test @InjectReactive() of Vue-Property-Decorator on vue-test-utils?

I am not sure how to provide the inject-reactive data when I mount the component. I don't need the exact solution, just a hint would be much appreciated. Here i

How to save local values from inside onMounted hook - Vue 3

how do I save assigned values from inside onMounted hook in Vue 3? My intention of saving the width and height values is so that can use to manipulate the value

Nuxt Cannot read properties of null (reading '$route')

I'm creating conditional event handlers in this fashion: <section>@mouseover="this.$route.path === '/' && imgHoverIn"</section> This, howev

Create a newline from computed string

I would like to know how to add a newline in a computed string with the concatenation of string values. I need the values to be this. 1111 Ave, Apt 107 Iowa my

I want to create a menu using vue and vuetify that has a chevron going up when expanded and down when not expanded

I want to create a menu where the button has a chevron points up when expanded and points down when not expanded. I have tried making an @click that changes a d

How to pass a value from Laravel blade to a vue component?

I am working on laravel / vue project and i want to pass a value from laravel blade to the vue component but i get this error : Missing required prop: "id" at

What does () mean if set as a interface property?

In the Vue.js source code (packages/reactivity/src/effects.ts), I found this: export interface ReactiveEffectRunner<T = any> { (): T effect: ReactiveE

Typegoose not working with vuetify in electron

Im trying to build a very simple model with typegoose inside Vue + electron. This is my simplified code: import { getModelForClass, prop, modelOptions } fro

New url is not opened in a new tab

I have this code : <b-btn variant="primary" class="btn-sm" :disabled="updatePending || !row.enabled" @click="changeState(row, row.dt ? 'activate'

Keep all style of page inside page block element

I have this code : <div class="page-payment"> <div class="payment-methods" v-if="!pending"> <sepa-modal ref="sepaModal" /> &

How to make v-menu keyboard accessible

Vuetify 5.10 and Vue 2.6.14. I know the Vuetify documentation says: By default, v-menu components are detached and moved to the root of your application. In or

Can I run laravel (admin dashboard) and vue (front-end) in a single domain

I have done a project which admin dashboard is done by using laravel+vus (vue (v2.6) inside laravel(v8)) and front end is done by independent vue(v3) js(getting

Reflect.getPrototypeOf called on non-object vue js

I am using chart 2 in vue js. chart is working fine but got this error every time i'm trying to call line chart.

When does an element become available in dom after using vue v-if

When does an element become available in the dom after using a vue v-if? I would have thought you could do a query selector on the element after the v-if evalu

Dynamically access Vue component data variable names

edit: I have used a number in this example which was a bad idea, in the real program I'm not using numbers but names (eg name_abba, name_jef, name_john) I have

I have project created by laravel 8 ,and i use JWT for my API ,now i can't install pusher because of JWT version

Someone can help me to fix this conflict Your requirements could not be resolved to an installable set of packages. Problem 1 - tymon/jwt-auth is locked to vers

How to exclude script on certain routes in Nuxt?

I have a nuxt2-webapp with a lot of routes and for all routes except 2, I need a script to be injected. Is there a way to disable the injecting? Nuxt config: me

Trying to restrict access to a route if loggedIn condition is true

I am trying to restrict access to the login if the user is already logged in by checking if there is already a token in the localStorage. Any idea on how I can

How to use routing in vue js?

I am working on a vue js project, to use the router , I installed via command -> npm install vue-router and created a router.js file , but when i try , npm r

Here i have a toggled the div but i want to toggle on perticuler div not all

First picture without clicking on edit button Second picture when i click on edit button So here i want is when i click on which ever divs edit button at that p