質問編集履歴
2
mod
test
CHANGED
File without changes
|
test
CHANGED
@@ -47,3 +47,11 @@
|
|
47
47
|
と言われて表示されません、、
|
48
48
|
|
49
49
|
そもそも問題の切り分けが不確かなのですが、HTML(Slim)の構文エラーなのか、JS側のバグの可能性もあるのかわかっていませんが、何か違わないかチェックしていただけると嬉しいです。
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
追記:
|
54
|
+
|
55
|
+
こちらはVue1.xならv-bind:class='{'text-danger':stationExists},
|
56
|
+
|
57
|
+
2.xならv-bind:class='{'text-danger':stationExists}というように記法が分かれているのでしょうか?
|
1
mod
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,25 +16,27 @@
|
|
16
16
|
|
17
17
|
```CoffeeScript
|
18
18
|
|
19
|
-
|
19
|
+
$ ->
|
20
20
|
|
21
|
-
|
21
|
+
new Vue(
|
22
22
|
|
23
|
-
|
23
|
+
...
|
24
24
|
|
25
|
-
|
25
|
+
data: {
|
26
26
|
|
27
|
-
|
27
|
+
stationExists: true
|
28
28
|
|
29
|
-
|
29
|
+
}
|
30
30
|
|
31
|
-
|
31
|
+
methods: {
|
32
32
|
|
33
|
-
|
33
|
+
switchStation: ->
|
34
34
|
|
35
|
-
|
35
|
+
stationExists = !@.$data.stations.length == 0
|
36
36
|
|
37
|
+
}
|
38
|
+
|
37
|
-
)
|
39
|
+
)
|
38
40
|
|
39
41
|
```
|
40
42
|
|