All Questions
Tagged with vue-component node.js
80 questions
0
votes
0
answers
68
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
23
views
Vue2.x vue custom element when i passed param like 111. the dot at the end was removed. Is it well known issue? How to fix it
Vue2.x vue custom element when i passed param like 111. the dot at the end was removed. Is it well known issue? How to fix it.
Step
npm run build vue file
use file from /dist in php project
Problem ...
0
votes
1
answer
300
views
Why won't Vue 3 rerender an <img>, even when it rerenders everything else in a component?
I'm working on a Vue project, in which multiple link cards (<a class='card'></a>) are stacked inside a "deck" (<div class='deck'></div>). The setup for these is ...
0
votes
0
answers
39
views
Issue in VueJs - isCustomElement
I am having a strange issue in the VueJS project, as when I am adding and trying to use the component from npm.
It shows a warning in the browser console and shows nothing in the output.
For example, ...
1
vote
1
answer
65
views
how to Update a 'this' variable in vuejs and set an API result
I want to update my variable nbeBugs but is not accessible inside then function.
My function getApi is async function because the API take time to response
template.vue
<script>
import ...
1
vote
1
answer
1k
views
Conditional Rendering with Vue and Prime Vue Library
I have a diagram that is composed of inputs and outputs. Using Primevue I am rendering a table with data for the inputs or outputs. However inputs and outputs should render different columns (not ...
0
votes
2
answers
639
views
How to emit data in Vue after api call is finished
I have a windows.addEventListener that triggers an API call. I need to pass a name from the api call to the parent component to display it as a title on a dashboard. How can I emit the data to my ...
0
votes
2
answers
569
views
How to re-render after a click Vue
I have a table component that is rendered when a node on my diagram is selected. In my template for the component that is rendering the table I have this:
<div v-if="this.nodeName != ''" ...
0
votes
1
answer
205
views
Vue accessing event listener values between methods
I have the following code below. How can I set the value of "e.detail.name" to "nodeName" and then call it in another method within the same component so I can use the value for an ...
1
vote
1
answer
2k
views
Passing Data between vue components
I have 3 vue components, Component A uses an event listener to gather the data from the HTML text a user clicks on and stores it into a variable. Component B will take the data and make an API call to ...
0
votes
1
answer
603
views
Problems with v-select and data
Good afternoon friends, then I'm going to tell you my mistake. I am working for a users screen, where you have your registration and editing. When you enter the register section you don't have to show ...
0
votes
0
answers
42
views
Pass prop in img src in template
In my component, I am trying to pass a dynamic string prop to the image src
<template>
<div class="flex flex-column col-12 md:col-6 xl:col-4 surface-card p-4 border-round border-bg text-...
0
votes
1
answer
49
views
Unable to get the variable in my dom (vue.js)
<v-app>
<h1>This is students Page</h1>
<p>{{question}}</p>
</v-app>
</template>
<script>
import ChannelDetails from './ChannelDetails'
...
0
votes
1
answer
39
views
React throwing error on using hooks without class name prefix
When I use hooks without class name prefix it's throwing error.
Please help me fix it
import React, {Fragment,useState} from 'react';
function App (props) {
const [x,updateX] = useState(1) /*
...
1
vote
2
answers
3k
views
How to add style in Vue js 3 on a cdn based app
I'm learning Vue js. I created an app with Vue included from a CDN and I want to know how to add a <style> to it.
I can write template as template: `<div>Vue js 3</div>` but can a &...