File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -105,23 +105,20 @@ export class SomeComponent {
105
105
In your ` main.js ` (The file where the root Vue instance is created) register the element
106
106
107
107
``` js
108
- Vue .registerElement (
109
- ' CheckBox' ,
110
- () => require (' nativescript-checkbox' ).CheckBox ,
111
- {
112
- model: {
113
- prop: ' checked' ,
114
- event : ' checkedChange'
115
- }
108
+ Vue .registerElement (' CheckBox' , () => require (' nativescript-checkbox' ).CheckBox , {
109
+ model: {
110
+ prop: ' checked' ,
111
+ event : ' checkedChange'
116
112
}
117
- );
113
+ } );
118
114
```
119
115
120
- And in your template, use it
116
+ And in your template, use it as:
121
117
122
118
``` html
123
- <CheckBox v-model = " myCheckedProp " fillColor = " red " text = " Check me! " / >
119
+ <check-box :checked = " isChecked " @checkedChange = " isChecked = $event.value " >
124
120
```
121
+ Use ` checked ` instead of ` v-model ` . [ See #99 ] ( https://github.com/nstudio/nativescript-checkbox/issues/99 ) .
125
122
126
123
## Properties
127
124
You can’t perform that action at this time.
0 commit comments