반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- d3 지도 확대/축소
- git
- img 태그 sizes
- 인터넷 거버넌스
- 웹 퍼포먼스 도구
- ecmascript modules(esm)
- firebase id 자동
- d3 지도 툴팁
- $fetch
- vue composable 함수
- d3 지도 타입스크립트
- pm2 업데이트 에러
- img 태그 srcset
- 함수형 프로그래밍
- vue 컴포저블 함수
- commonjs와 ecmascript modules(esm)
- component is already mounted please use $fetch instead.
- Learning React
- repaint
- pm2 버전 충돌
- reflow
- in-memory pm2 is out-of-date
- vuedraggable
- vue draggable 차트 안나옴
- cloud firestore id auto increment
- vue3 drag and drop
- ToDo
- 이미지 성능 최적화
- nuxt universal rendering
- d3 지도
Archives
- Today
- Total
목록router.push() (1)
빵 입니다.
a태그와 router-link 그리고 router.push()
a태그 => 화면 전환 => 리소스 처음부터 끝까지 다시 호출. router-link => 기존 리소스 그대로 사용하기 때문에 새로 불러오지 않고, 사용할 컴포넌트만 불러옴 => 태그 생성. => 선언적 방식. 클릭 시 url 로 이동만 한다. 📌 router.push는 router-link 를 클릭 할 때 내부적으로 호출되는 메소드 ===> router-link를 클릭하면 router.push를 호출하는 것과 같다. router.push() => 자바스크립트로 주소창만 변경해주고, 히스토리 쌓고, 컴포넌트만 변경한다. => 주소 추가하기 위해 onClick과 같은 이벤트 핸들러와 같이 사용된다. => , 등 어떤 태그에 이벤트를 발생시켜 주소를 추가해서 => window.history API와 비슷하게..
프론트엔드/Vue
2022. 8. 2. 15:48