質問編集履歴

1

タイトルの修正、本文の加筆

2017/02/13 16:04

投稿

takumi123
takumi123

スコア59

test CHANGED
@@ -1 +1 @@
1
- v-forの中でimg v-bing:srcを使いたい。 Vue.js
1
+ v-forの中でimg v-bind:srcを使いたい。 Vue.js
test CHANGED
@@ -18,11 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- ##エラー
22
21
 
23
- [Vue warn]: failed to compile template
24
-
25
- invalid expression: v-bind:src="{{item.icon}}"
26
22
 
27
23
 
28
24
 
@@ -69,3 +65,27 @@
69
65
  })
70
66
 
71
67
  ```
68
+
69
+
70
+
71
+
72
+
73
+ ##エラー
74
+
75
+ [Vue warn]: failed to compile template
76
+
77
+ invalid expression: v-bind:src="{{item.icon}}"
78
+
79
+
80
+
81
+
82
+
83
+ ##試したこと
84
+
85
+ <img v-bind:src="{{item.icon}}">
86
+
87
+ <img v-bind:src={{item.icon}}>
88
+
89
+
90
+
91
+ 上記2点ともうまくいきませんでした。