A Vue.js lifecycle directives.
Via npm npm install vue-lifecycle --save
import VueLifecycle from 'vue-lifecycle';
//OR
var VueLifecycle = require('vue-lifecycle');
Vue.use(VueLifecycle);
Via script tag
<script src="path/to/vue.js"></script>
<script src="path/to/node_modules/vue-lifecycle/dist/vue-lifecycle.min.js"></script>
<script>
Vue.use(VueLifecycle);
</script>
<some-component v-on-created="someFunction"></some-component>
<some-component v-on-mounted="someFunction"></some-component>
<some-component v-on-destroyed="someFunction"></some-component>