# useInstance
useInstance
Get vm
from getCurrentInstance
API, Same as getCurrentInstance.proxy (opens new window)
# Example
💡 Open DevTools, Instance Info already Print out.
# Usage
import { useInstance } from '@vueblocks/vue-use-core'
export default {
setup () {
const vm = useInstance()
console.log(vm)
}
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# Typing
declare const useInstance: () => any;
1