[Vuejs]-Communicating with a completely separate vue component

0๐Ÿ‘

โœ…

I would say that having Vue control only part of an application is what is fishy, but you can refer to your Vue instance externally. If it has a method named updateCart and you created it like

const vueInstance = new Vue(...);

then you could call vueInstance.updateCart(whatever); in your click handler.

Leave a comment