vue.js

vue Router

youngseokim_kr 2021. 11. 17. 15:50

<RouterView> 페이지 출력되는 영역 컴포넌트

<RouterLink> 페이지 이동을 위한 링크 컴포넌트

$route - 페이지 정보를 가지는 객체 [속성]

$router - route 페이지 조작을 위한 객체 [push]

https://google.com/tistory.com/123?apikey=abcd0987&name=KYS

https://google.com - 도메인

tistory.com/123?apikey=abcd0987&name=KYS - fullPath [$route]

tistory.com/123 - params [직접적인 경로]

?apikey=abcd0987&name=KYS - query [key, value] 데이터 

[key, value] 

[apikey,abcd0987]  [name, KYS] 

https://next.router.vuejs.org/api/#routerecordnormalized

--route 관련 속성

'vue.js' 카테고리의 다른 글

netlify serverless Fuctions  (0) 2021.11.17
SPA 개요  (0) 2021.11.17
vue router [scroll behavior][화면 변경 시 스크롤 위치 조정]  (0) 2021.11.17
vuex  (0) 2021.11.17
모든 컴퍼넌트에서 전역 스타일 가져오기  (0) 2021.11.16