Vue component life cycle and life cycle function diagram
Component life cycle
The life cycle of a component refers to the entire stage of a component from creation – > operation – > destruction . The life cycle emphasizes a period of time ;
life cycle function
The lifecycle function (also called the hook function) is a built-in function provided by the vue framework , which will be automatically executed in order along with the lifecycle of the component;
the lifecycle function emphasizes a point in time ;