File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -255,12 +255,12 @@ Here's a complete example of a simple todo list:
255
255
256
256
``` js
257
257
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
+ ` ,
264
264
props: [' title' ]
265
265
})
266
266
@@ -301,12 +301,12 @@ new Vue({
301
301
</div >
302
302
<script >
303
303
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
+ ` ,
310
310
props: [' title' ]
311
311
})
312
312
new Vue ({
You can’t perform that action at this time.
0 commit comments