반응형
vue.js에서 <li> 안에 v-for를 돌렸을때 에러가 났다
<li v-for="(todo, index) in todos">
error Elements in iteration expect to have 'v-bind:key' directives vue/require-v-for-key
error 'index' is defined but never used vue/no-unused-vars
아래와 같이 수정 후 정상적으로 작동된다
<li v-for="(todo, index) in todos" :key="index">
참쉽죠?
반응형
'WEB > Etc' 카테고리의 다른 글
[PHP] PHP7 mcrypt_encrypt, openssl_encrypt (0) | 2020.10.22 |
---|---|
[PHP] 로그인 페이지를 만들어보자 (DB사용) (0) | 2020.10.08 |
[PHP] CURL 홈페이지 파싱, 멀티 (0) | 2020.09.29 |
댓글