Skip to main content

All Questions

Tagged with
0 votes
2 answers
797 views

Vuejs method ajax call other method on component

how to call another method inside jquery ajax? methods : { calert(type,msg="",error=""){ console.log("call me"); }, getData(){ $.ajax({ ...
Deddy Chandra's user avatar
0 votes
1 answer
83 views

How to use JavaScript in a Vue component

I need to put some charts and statistics tables in my Vue components but they are all created with pure JavaScript functions and their context are getting with jQuery methods. I am using ChartJS for ...
Yasin Demirkaya's user avatar
0 votes
0 answers
852 views

adding class to an element in Vuejs component modifies all instances of that component

I wrote a mounted function to conditionally add and remove classes from an element in a Vuejs component. It appears that the function adds the class to the element in not only this instance of the ...
GNG's user avatar
  • 1,561
0 votes
3 answers
2k views

Vue.JS passing computed values from root to child component using props

So I have a demo app in which I am generating a random number in via computed property in root and passing that computed value to child component using props. I am not able to figure out correct way ...
B L Λ C K's user avatar
0 votes
1 answer
1k views

call a function in a different vue component from v-for @click method

I am trying to use a method from on of my vue components in another vue component. I have implemented a solution below, however, I think there can be something more reusable. Here is my problem: I ...
Bryan 's user avatar
  • 39
1 vote
1 answer
1k views

Only one dynamic data object loading into a component at a time vue.js

I've been struggling to learn Vue for a little while now, and am still having trouble wrapping my head around its data-oriented model, and particularly the syntax for using that data. I've ...
Amanda Harvey's user avatar
25 votes
1 answer
37k views

How to get DOM element of current Vue component?

When I'm inside some method in vue commponent and want to use some dom manipulation (by jquery) I need to get DOM element coresponnding to my component (especially in case when I have many instances ...
Kamil Kiełczewski's user avatar