Questions tagged [vue-component]
Component is a powerful Vue feature that allows extending basic HTML elements to encapsulate reusable code.
vue-component
10,684
questions
0
votes
1
answer
29
views
Return component with props from composable
In a Vue project, I have a composable that provides few useful refs to components using it.
In my application, it is very likely that whichever components use the composable, it will need to render ...
0
votes
0
answers
30
views
Vue modal won't show but load perfectly fine in the web page
I'm trying to create a modal with Vue to display some information of a post so i created a component Modal.vue and loaded into the page that list all the posts, and when you click on a post you should ...
0
votes
0
answers
34
views
How to create a standalone embeddable script from an internal Vue component?
I have a Vue application, and within, I have a component, which I reuse throughout the app. It's located in src/components.
I'd now like to make it so this component can be embedded into other ...
0
votes
0
answers
36
views
Links not longer working when navigating to another view
So, when I used this code to go from the view to another with props.
this my first view :
<template>
<Spinner />
<Header />
<main class="main">
<...
0
votes
0
answers
31
views
TypeError: Right-hand side of 'instanceof' is not an object in Chartist.js with Vue.js
I'm trying to create a Pie chart using Chartist.js in my Vue.js project and integrate the chartist-plugin-fill-donut plugin. However, I'm encountering a TypeError: Right-hand side of 'instanceof' is ...
0
votes
1
answer
23
views
Vue.js: Watch Nested Property Changes and Trigger Method in a Deeply Nested Component Structure
I'm working with a Vue.js application where I need to watch changes on a nested property (isChecked) in a deeply nested component structure. My goal is to trigger a method (sumOfChecked) whenever the ...
0
votes
2
answers
37
views
Vuejs 3 props are all undefined
I know this has been asked before but nothing I've tried works, even the official docs
I have a view sample vue component and I want to pass a prop so I can display it
<template>
<div ...
0
votes
0
answers
26
views
Vue shows an image in one component, but in other component, gives 304 error and doesn't show the image
My Vue.js app has the public folder, with a folder for images, where I put the images for the app to use.
In Home component I can show the image with:
<img :src="'images/'+ product.image"&...
0
votes
1
answer
34
views
Binding Events and Functions to Dynamic Components in Vue 3
I have an array of form field like below and I wanna render dynamic form with event and function
[...{
label: "Logo",
field: "image",
component: ...
1
vote
0
answers
19
views
Quasar qpopup edit async validation not working
I am facing issue with qpopupedit async validation I created a codepen. I think it is converting return boolean value to a string. can anyone check why it is not working ?
I created a Codepen you can ...
0
votes
2
answers
28
views
Vue 3 upgrade props are passed but not show in the component
I have following Vue 3 component image-template-row-item which has the prop templates-types
which is defined in the component in the props:
now this prop is always passed as undefined to the ...
2
votes
1
answer
72
views
[Vue warn]: Failed to resolve component: UserBasket
I ran into an issue that had me scratch my head for a few days now. I am doing a application with vuejs3 frontend.
For all the code I provide I removed the most other code and kept what I think is ...
0
votes
0
answers
29
views
VeeValidate handeSubmit Not returned values
I work with vee-validate validation for vue. I choose handleSubmit method:
<template>
<div>
<Form @submit="onSubmit" :validation-schema="schema">
<...
0
votes
2
answers
37
views
VUE js: prevent a function to run once when initially loaded/mounted
I'm trying to create a form that sends the submitted data into a database:
I'm new in vue and still reading the documentation, if the answer is in the documentation please do remind me. The below is a ...
0
votes
2
answers
37
views
Re-render a OpenWeatherMap component when switching language in Vue 3
I am a beginner using Vue 3, to learn it I am developing a simple weather webapp using OpenWeatherMap API. I have added multilanguage support using vue-i18n library and everything works fine. But ...