반응형 Push1 Vue.js vue-rotuer, 라우팅하기 - vue-router 기본적인 프로젝트 주소에서 다른페이지로 라우팅 할때 쓰는 도구이다. 사이트주소/detail, 사이트주소/detail/0, 사이트주소/mypage, 사이트주소/home 이런식으로 사용할 수 있다. 사용하기 위해선 설치먼저 해줘야한다. npm install vue-router@4 https://router.vuejs.org/ Vue Router | The official Router for Vue.js The official Router for Vue.js router.vuejs.org import { createWebHistory, createRouter } from "vue-router"; const routes = [ { path: "/경로", component: 컴포넌트, } .. 2023. 4. 2. 이전 1 다음 반응형