[Vuejs]-How to check in a component which classes were applied to it?

0👍

You can check $vnode.data.staticClass.
From the console, logging this from mounted()

VueComponent {_uid: 13, …}
  ...
  $vnode
    ...
    data:
      ...
      staticClass: "myClass"

Leave a comment