Horje
call a function of another component vue Code Example
call a function of another component vue
    ....
    mounted() {
        this.$root.$on('component1', () => {
            // your code goes here
            this.c1method()
        }
    }
how to call function from another component in vue js
Vue.component('component1', {
  methods: {
    c1method: function(){
     alert('this is c1method')
    },
  }
})
Vue.component('component2', {
  methods: {
    c2method: function(){
     component('component1').c1method()//like this
    },
  }
})




Javascript

Related
obtener primer elemento de un array javascript Code Example obtener primer elemento de un array javascript Code Example
jquery check if all elements hidden Code Example jquery check if all elements hidden Code Example
javascript index of biggest number Code Example javascript index of biggest number Code Example
using dot prototype with constructor in javascript Code Example using dot prototype with constructor in javascript Code Example
jquery deparam Code Example jquery deparam Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7