Skip to content

Commit eed8cb7

Browse files
committed
sudheerj#29 syntax-highlighting + indentation
1 parent 3b92412 commit eed8cb7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -957,13 +957,15 @@ List of 300 VueJS Interview Questions
957957
})
958958
```
959959
Now you can use this todo-item in parent component to access the count value.
960-
```javascript
960+
```vue
961961
<ul v-for="todo in todos">
962-
<li>
963-
<todo-item
962+
<li>
963+
<todo-item
964964
v-bind:key="todo.id"
965-
v-bind:todo="todo" v-on:increment-count="total += 1"></todo-item>
966-
</li>
965+
v-bind:todo="todo"
966+
v-on:increment-count="total += 1"
967+
/></todo-item>
968+
</li>
967969
</ul>
968970
<span> Total todos count is {{total}}</span>
969971
```

0 commit comments

Comments
 (0)