vue-is-mounted
🔌 A simple Vue.js mixin for telling whether a component has been mounted.
Install
With npm:
$ npm i vue-is-mounted
Or in the browser:
Usage
Node.JS
const isMounted = ; // ... mixins: isMounted computed: { if thisisMounted console; } ;
Browser
// ... mixins: windowvueIsMounted // window reference can be omitted computed: { if thisisMounted console; } ;