vue get component hash

JavaScript
this.$options._scopeId // returns something like 'data-v-763db97b'
Source

Also in JavaScript: