Vue - 라이프사이클

김종민·2023년 3월 12일
0

Vue컴포넌트는 크게 create -> mount -> 컴포넌트 생성 -> update -> unmount
의 라이프사이클이 존재한다.

create 단계

  • 데이터만 존재하는 단계이다.

mount 단계

  • template에 구성된 요소들을 실제 HTML로 변경한다.

Hook

beforeCreate()
created()
beforeMount()
mounted()
beforeUpdate()
updated()
beforeUnmount()
unmounted()

profile
개발을 합시다 :)

0개의 댓글