Vue.js -. 5 Life Cycle

Vue life cycle

Creation phase
new new Vue
1, beforeCreate () indicate no prior instance is created it will perform
load data and methods
2, caeated () to initialize the data and methods are triggered
el: app did not load the template into the dom in memory
3 , beforeMount () after the implementation of the trigger template in memory don not put
the template loaded into memory page
4, mounted () the contents of the template has been hanging in the page instance is created period last function,

The operational phase of the life cycle function
5, the interface has not been updated beforeUpdate (). Data has been updated
re-rendering Dome
6, Update () interface and the data has been synchronized
destroyed
7, beforeDestroy () data can also be used.

8, Destroy () has been completely destroyed

Guess you like

Origin www.cnblogs.com/ruogu/p/10944094.html