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.
Source:stackexchange.com