Skip to content

Commit e87a4f0

Browse files
committed
update all template literals to strings
1 parent 81de5d4 commit e87a4f0

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

src/v2/guide/components.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -639,15 +639,15 @@ Let's see it in action with a very simple currency input:
639639

640640
``` js
641641
Vue.component('currency-input', {
642-
template: `
643-
<span>
644-
$
645-
<input
646-
ref="input"
647-
v-bind:value="value"
648-
v-on:input="updateValue($event.target.value)">
649-
</span>
650-
`,
642+
template: '\
643+
<span>\
644+
$\
645+
<input\
646+
ref="input"\
647+
v-bind:value="value"\
648+
v-on:input="updateValue($event.target.value)">\
649+
</span>\
650+
',
651651
props: ['value'],
652652
methods: {
653653
// Instead of updating the value directly, this

src/v2/guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ If you need to compile templates on the fly (e.g. passing a string to the `templ
9393
``` js
9494
// this requires the compiler
9595
new Vue({
96-
template: `<div>{{ hi }}</div>`
96+
template: '<div>{{ hi }}</div>'
9797
})
9898

9999
// this does not

src/v2/guide/list.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ Here's a complete example of a simple todo list:
259259

260260
``` js
261261
Vue.component('todo-item', {
262-
template: `
263-
<li>
264-
{{ title }}
265-
<button v-on:click="$emit('remove')">X</button>
266-
</li>
267-
`,
262+
template: '\
263+
<li>\
264+
{{ title }}\
265+
<button v-on:click="$emit('remove')">X</button>\
266+
</li>\
267+
',
268268
props: ['title']
269269
})
270270

@@ -306,12 +306,12 @@ new Vue({
306306
</div>
307307
<script>
308308
Vue.component('todo-item', {
309-
template: `
310-
<li>
311-
{{ title }}
312-
<button v-on:click="$emit('remove')">X</button>
313-
</li>
314-
`,
309+
template: '\
310+
<li>\
311+
{{ title }}\
312+
<button v-on:click="$emit('remove')">X</button>\
313+
</li>\
314+
',
315315
props: ['title']
316316
})
317317
new Vue({

0 commit comments

Comments
 (0)