File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -980,19 +980,19 @@ List of 300 VueJS Interview Questions
980
980
981
981
Let' s take a custom-input component as an example,
982
982
```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
+ })
992
992
```
993
993
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>
996
996
```
997
997
998
998
**[⬆ Back to Top](#table-of-contents)**
You can’t perform that action at this time.
0 commit comments