[Vuejs]-Recording data Vuejs for different routes

0👍

To get your method to trigger on click you need to add the .native modifier i.e.

@click.native="getData('test')"

https://v2.vuejs.org/v2/guide/components.html#Binding-Native-Events-to-Components

Hope this helps!

👤Rwd

Leave a comment