teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

間違えを編集

2020/02/24 07:39

投稿

TatsuyaOkawa
TatsuyaOkawa

スコア29

title CHANGED
@@ -1,1 +1,1 @@
1
- Javascript(Vue.js 書き方
1
+ Vue.js v-modelの書き方(変数の文字列を同時に入れる方法)
body CHANGED
@@ -13,14 +13,14 @@
13
13
 
14
14
  ```javascript
15
15
  <template
16
- v-for="(category, index1) in questionCategories"
16
+ v-for="category in questionCategories"
17
17
  >
18
18
  <div
19
- v-for="(question, index2) in category.questions"
19
+ v-for="(question, index1) in category.questions"
20
20
  >
21
21
  <span>{{question.name}}</span>
22
22
  <div
23
- v-for="item in question.questionItems"
23
+ v-for="(item, index2) in question.questionItems"
24
24
  :key="item.id"
25
25
  >
26
26
  <input