Named functions that occur throughout the lifecycle of the instance
Note: You will not have access to the DOM or the target mounting element (this.$el)
inside of creation hooks
beforeCreate()
created()
Allow access to your component immediately before and after the first render
beforeMount()
this.$el
is yet to be createdmounted()
this.$el
)Updating hooked are called whenever a reactive property used by your component changes, or something else causes it to re-render
beforeUpdate()
updated()
Allow you to perform actions when component is destroyed, such as cleanup or analytics sending
beforeDestroy()
destroyed()