Call a Vue JS component method from outside the component

Call a Vue JS component method from outside the component

Asked on November 13, 2018 in vue.js.
Add Comment


  • 1 Answer(s)

    Just use Vue event scheme

    vm.$broadcast('event-name', args)
    

    and then

    vm.$on('event-name', function())
    
    Answered on November 13, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.