Skip to content

Commit b0f9d57

Browse files
Alex-Sokolovkazupon
authored andcommitted
list.md simplify example (vuejs#791)
1 parent 2a13956 commit b0f9d57

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/v2/guide/list.md

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

256256
``` js
257257
Vue.component('todo-item', {
258-
template: '\
259-
<li>\
260-
{{ title }}\
261-
<button v-on:click="$emit(\'remove\')">X</button>\
262-
</li>\
263-
',
258+
template: `
259+
<li>
260+
{{ title }}
261+
<button v-on:click="$emit('remove')">X</button>
262+
</li>
263+
`,
264264
props: ['title']
265265
})
266266

@@ -301,12 +301,12 @@ new Vue({
301301
</div>
302302
<script>
303303
Vue.component('todo-item', {
304-
template: '\
305-
<li>\
306-
{{ title }}\
307-
<button v-on:click="$emit(\'remove\')">X</button>\
308-
</li>\
309-
',
304+
template: `
305+
<li>
306+
{{ title }}
307+
<button v-on:click="$emit('remove')">X</button>
308+
</li>
309+
`,
310310
props: ['title']
311311
})
312312
new Vue({

0 commit comments

Comments
 (0)