[Vuejs]-How to use v-item-group when using vue.components – Vuetify

0👍

First of all why don’t you put your <fm-card> as an "real" component and reference it in your parent and pass all of your values you are using in there with it?

Like this

<fm-card :value1="value1" :value2="value2"/>

than you can put your complete code in this component – it’s making your code much more clearer.

And than I think you don’t need to use @click.native any more… @click should be enough, but than check that you have a semicolon after your toggle; – you have to delete this!

Than you can go to your methods and work with your click event like this:

methods: {
  toggle() {
    //your code in here
  }
}

Hopefully this helps you out! Pls let me know!

Leave a comment