Skip to content

Commit eb0e139

Browse files
authored
Update README.md
Updated as request from nstudio#99
1 parent 174dcf5 commit eb0e139

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Diff for: README.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -105,23 +105,20 @@ export class SomeComponent {
105105
In your `main.js` (The file where the root Vue instance is created) register the element
106106

107107
```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'
116112
}
117-
);
113+
});
118114
```
119115

120-
And in your template, use it
116+
And in your template, use it as:
121117

122118
```html
123-
<CheckBox v-model="myCheckedProp" fillColor="red" text="Check me!" />
119+
<check-box :checked="isChecked" @checkedChange="isChecked = $event.value">
124120
```
121+
Use `checked` instead of `v-model`. [See #99](https://github.com/nstudio/nativescript-checkbox/issues/99).
125122

126123
## Properties
127124

0 commit comments

Comments
 (0)