Relative Content

Tag Archive for vue.js

On click event does not fire

I have a simply on click method which works as native html onclick=changeImage(123)
but doesn’t fire like @click=changeImage(123) or v-on:click......
I have to use the Vue syntax because want to send variables to the method body like
@click=changeImage(item.image[0].id) for example.

Configurer la notification avec react native

J’aimerais configurer la notifications. Je veux que lorsque je configure une heure a cette heure la je reçois une notification de mon application. node js et react native sont les technologie que j’utilise

Loading dynamic script from API

I would like to load an external script with vue when the page loads through an API request which delivers an html script with some attributes.

More granular watch information

I have a situation where the application that I’m working on involves a few lengthy lists which undergird watches. When I say lengthy, the lists can be anything from a thousand, up to ten thousand items long. The watches are deep and update other lists which in-turn have watches.

Vue Directive: Dynamically Replacing an element with a component – Event Listeners Not Working

I’m working on a Vue 3 project where I need to dynamically replace anchor elements that contain a specific attribute (data-button) with a custom Vue component (CustomButton). To achieve this, I created a directive that queries all the anchor tags within a specified element and dynamically imports the CustomButton component. Below link is a simplified version of my implementation:
[you can see a simiplified example here]

Can’t figure out how to add an element based on a template in VueJS

I’m trying to use Vue to update my static HTML. What I need is to update some elements (say, change the inner HTML, or icon, or some part of it), and add a new one to the DOM. My requirement is to use templates for adding a new element because creating is dynamically with JS is tedious as they could be complicated.