Skip to content

Commit 82c170a

Browse files
committed
sudheerj#30 syntax-highlighting + indentation
1 parent eed8cb7 commit 82c170a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -980,19 +980,19 @@ List of 300 VueJS Interview Questions
980980

981981
Let's take a custom-input component as an example,
982982
```javascript
983-
Vue.component('custom-input', {
984-
props: ['value'],
985-
template: `
986-
<input
987-
v-bind:value="value"
988-
v-on:input="$emit('input', $event.target.value)"
989-
>
990-
`
991-
})
983+
Vue.component('custom-input', {
984+
props: ['value'],
985+
template: `
986+
<input
987+
v-bind:value="value"
988+
v-on:input="$emit('input', $event.target.value)"
989+
/>
990+
`
991+
})
992992
```
993993
Now you can use `v-model` with this component,
994-
```javascript
995-
<custom-input v-model="searchInput"></custom-input>
994+
```vue
995+
<custom-input v-model="searchInput"></custom-input>
996996
```
997997
998998
**[⬆ Back to Top](#table-of-contents)**

0 commit comments

Comments
 (0)