Skip to content

FL3NKEY/vue-lifecycle

Repository files navigation

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>

About

☀️ A Vue.js lifecycle directives.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published