Vue.js Router Life cycle Navigation Guard 'beforeEach' Vue.js Router의 Navigation Guard 중 하나인 'beforeEach'는 Global Guard라고도 불린다. 사용은 아래와 같다. router.beforeEach((to, from, next) => {}) to: 이동할 URL 정보가 담긴 라우터 객체 (이동할 URL) from: 현재 URL 정보가 담긴 라우터 객체 (현재 URL) next: to에서 지정한 URL로 이동하기 위해 필수적으로 호출해야하는 함수 beforeEach(to, from, next)의 to.matched to.matched는 return 값이 LIST이다. router.js에서 routes의 path 중 일치하는..