Reputation: 2226
My vue-html.json file snippet
"body": ["<ActivityIndicator v-if=\"$apollo.loading\" />"]
does not add $
and produces
<ActivityIndicator v-if="apollo.loading" />
but instead it should produce
<ActivityIndicator v-if="$apollo.loading" />
Upvotes: 0
Views: 1097
Reputation: 5333
"body": ["<ActivityIndicator v-if=\"\\$apollo.loading\" />"]
You need to escape the $
symbol individually too
Upvotes: 0
Reputation: 3226
"description": {
"prefix": "trigger",
"body": [
"<ActivityIndicator v-if=\"\\$apollo.loading\" />"
],
"description": "description"
}
In JSON the backslash itself needs to be encoded with \
, which is why you need \\
Upvotes: 1