Package Exports
- vue-lifecycle
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-lifecycle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-lifecycle
A Vue.js lifecycle directives.
Install
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>
Usage
Created
<some-component v-on-created="someFunction"></some-component>
Mounted
<some-component v-on-mounted="someFunction"></some-component>
Destroyed
<some-component v-on-destroyed="someFunction"></some-component>