how to call function from another component in vue js

Solutions on MaxInterview for how to call function from another component in vue js by the best coders in the world

showing results for - "how to call function from another component in vue js"
Lena
06 Jul 2018
1Vue.component('component1', {
2  methods: {
3    c1method: function(){
4     alert('this is c1method')
5    },
6  }
7})
8Vue.component('component2', {
9  methods: {
10    c2method: function(){
11     component('component1').c1method()//like this
12    },
13  }
14})
15
queries leading to this page
vue call method in another methodcall function inside child component vuehow to call a function in another function vuejscall function from another js file vuecall method from another vuecall another component function in vue jshow to use functions from one vue component to another call a component as a function vue jsvue call function in another componentcall other component method in another component vue jsvuejs call component method from another componentcall one function inside another vuecall method inside another method vuecall a method from one component to another in vuejs typescriptvue js call function from another functionvue how to call another componentvue js how to call method from another componentvue call function from one component to anotherreference vue function inside another functioncall another component method in vuejshow to call functioni from one component to another component in vue3how call a function using another component vuehowcall a function using another component vuecall method from another component vuevuejs call to method in another componentcall component from function 2b vuecall another function from a function vue jscall a component method from another component vuecall function from child component vuehow to call vue function in another jscall another component method from different component file in vuejscall method from another component vue jscall function of another component vuehow to call functioni from one component to another component in vuejscall a function of another component vuecall a method in another component in vuehow to call function from js file in vuejscalling this method inside another function in vuevue js call method from another methodvue 3 call function in another componenthow to call method in another method in vuecall function to same component method in vuehow to call function from another component in vue js