new Vue();
breforeCreate()
observe data && init events
created()
template options and render
beforeMount()
create virtual DOM el and replace ‘el’ with it
mounted()
beforeUpdate() \
virtual DOM rerender and patch \
updated()
actived() \
keep-alive component reactivated \
deactiveted()
beforeDestroy()
teardown watchers, child components, event listenners
destoryed()
Transition && Animations
Classses
- v-enter
Starting state for enter
- v-enter-active
Active state for enter
- v-enter-to
v2.1.8+. Ending state for enter
- v-leave
Starting state for leave
- v-leave-active
Active state for leave
- v-leave-to
v2.1.9+. Ending state for leave
JS Hooks
- v-on:before-enter
- v-on:enter
- v-on:after-enter
- v-on:enter-cancelled
- v-on:before-leave
- v-on:leave
- v-on:after-leave
- v-on:leave-cancelled
1 | methods:{ |