Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

call a function of another component vue

    ....
    mounted() {
        this.$root.$on('component1', () => {
            // your code goes here
            this.c1method()
        }
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #function #component #vue
ADD COMMENT
Topic
Name
8+9 =