How to get DOM element of current Vue component?
Just by this (in any method in "methods"):
let domElement = this.$el;
:)
But remember this is valid as long as your component is not a Fragment Instance i.e. it has a single root HTML tag
Just by this (in any method in "methods"):
let domElement = this.$el;
:)
But remember this is valid as long as your component is not a Fragment Instance i.e. it has a single root HTML tag