일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 형상관리프리즘
- vue개발환경
- whitelabel
- 리눅스오류
- MySQL
- frism
- mysql dump
- vuejs
- 프리즘반출
- 국내형상관리툴
- vue개발환경세팅
- jenkins오류
- jdk
- java
- vue
- react
- vscode
- GitHub
- firestore
- merge request
- 프리즘커밋
- vue 이미지
- gitlab merge request
- 깃랩 머지
- 이미지 절대경로
- NGINX
- 청년희망적금
- 프리즘반입
- javascript
- vue3
Archives
- Today
- Total
여씨의 개발이야기
[vuejs] error Elements in iteration expect to have 'v-bind:key' directives vue/require-v-for-key 본문
🐾 Programming Lang/👀 Vue
[vuejs] error Elements in iteration expect to have 'v-bind:key' directives vue/require-v-for-key
yeossi 2024. 1. 24. 14:22
해당 에러는 위와 같이 v-for를 사용했을 때 나는 에러이다. v-for를 사용할 경우에 키값도 같이 지정을 해줘야 한다.
그렇기때문에 아래와 같이 수정하였다
<div v-for="p in products" :key="p">
<h4>{{p}}</h4>
<p>가격은?</p>
</div>
'🐾 Programming Lang > 👀 Vue' 카테고리의 다른 글
[vuejs] 변수를 사용해 이미지 경로를 지정하는 법 (0) | 2024.01.24 |
---|---|
[vue.js] 개발환경 세팅 (0) | 2024.01.24 |
[vue] 개발환경 세팅시 vs code extension 추천 (0) | 2024.01.24 |
[입문] Vue에서 external URL redirect 하는 법 (0) | 2022.02.11 |
[입문] React vs Vue.js (0) | 2022.01.08 |
Comments