Skip to main content

All Questions

0 votes
1 answer
44 views

cases for using $event as param of a function

I have a basic question related to argument of a function. when emitting an event from a child to a parent or when triggering a click event, I've seen in somme cases the add of $event as a parameter ...
ftouh yaham's user avatar
0 votes
1 answer
70 views

local registration went wrong

I generated a new project using vue 2, then I wanted to apply local registration, but I"m getting compile errors the following shows the changes files: main.js import Vue from 'vue' import ...
nidhou gsm's user avatar
0 votes
1 answer
83 views

vuejs app isn't running when using cdn: version 3

On my current laptop I don't have vuejs configuration hence I used cdn link yet the code isn't running <html> <head> </head> <body> <script src="https://unpkg.com/vue@...
bohi tibuti's user avatar
-1 votes
1 answer
452 views

Failed to scan for dependencies from entries: index.html" Error after Running npm run dev

I am encountering an issue while trying to run my Vue.js project with Vite. After executing the command npm run dev, the server fails to start, and I receive the following error: VITE v5.4.3 ready in ...
ADIL RADIDI's user avatar
-2 votes
2 answers
73 views

Vue best practice for calling child's child's functions? [closed]

Say you have a vue project where. The App.vue has a button and a child CanvasView.vue file that sets up the canvas. The CanvasView.vue file has a child CubeComponent.vue that draws a cube The ...
Lazy0147's user avatar
0 votes
1 answer
44 views

Is there a way to v-bind Components (while setting its prop) as prop of another component as shown below

<MyParentComponent :component-prop="MyChildComponent.ChildComponentProp.value = 'xyz'"> This is what I want to achieve. I want to provide MyParentComponent a child component as a prop. ...
clair's user avatar
  • 1
0 votes
2 answers
34 views

I have created a Img component using Vue Js. but Img is not showing

I have created a Img component using Vue Js. and the component is passed to the header file which is in the same directory, the Img component contains a parent div. when i passed the Img component to ...
Muhammad Bilal's user avatar
0 votes
0 answers
87 views

Displaying Vue component outside div id="app"

Is it possible to display a Vue component outside of the <div id="app">? I am trying to display some components in my Laravel blade file, but I need help figuring out how. Could ...
Wormsonn's user avatar
0 votes
1 answer
71 views

How to toggle a v-if

I am trying to toggle between two components in my Vue.js Navbar. But as I am calling the toggle function, the value of active is changing, however, the components displayed do not. This is my App.vue ...
Jakob Kovacs's user avatar
2 votes
1 answer
1k views

diferrence between new vue & vue.createapp

I'm studing Vue.js and I have learned that every Vue application starts by creating a new Vue instance with the Vue custructor new Vue({ })). So far everything is clear, untill t I came across Vue....
atif thb's user avatar
0 votes
2 answers
96 views

How to add v-model to button of a child componen and bind on it in the parent component

i am using vue3 with options api as shown in the code posted below, in NotifDimsToLSRIncomformability component, i have a button. and NotifDimsToLSRIncomformability is being hosted in a parent ...
Amr's user avatar
  • 33
0 votes
1 answer
63 views

How to create and bind on vmodel of a button

i am using vue3 with options api as shown in the code posted below, i know how create a radio-button and how to bind on its properties. But my question is how to bind on properties of a button. as ...
Amr's user avatar
  • 33
0 votes
2 answers
121 views

Vue.js: How to convert an array to object?

In Vue.js: How do I convert an array to an object? I wanted to get name value only "Willy" from the array. Array data from LocalStorage: [{"id":"56b5","name":&...
Willy R. W.'s user avatar
1 vote
2 answers
2k views

Vue use v-bind with object for multiple props. How to use .prop modifier

I use a Component that has multiple props. This is my code and works very well const val = { text: 'a', value: 'b' } const text = 'some text'; <template> <some-component :myVal.prop=&...
dongwoo Kwak's user avatar
0 votes
1 answer
407 views

v-bind doesn't work with v-tabs I had to use v-model

I'm using the component of vuetify, and have set the default display as page-2 (students) but when I click on second tab professors (page1) nothing happens. when I changed :value with v-model it ...
nidhou gsm's user avatar

15 30 50 per page
1
2 3 4 5
10