Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,20 @@ export class SomeComponent {
In your `main.js` (The file where the root Vue instance is created) register the element

```js
Vue.registerElement(
'CheckBox',
() => require('nativescript-checkbox').CheckBox,
{
model: {
prop: 'checked',
event: 'checkedChange'
}
Vue.registerElement('CheckBox', () => require('nativescript-checkbox').CheckBox, {
model: {
prop: 'checked',
event: 'checkedChange'
}
);
});
```

And in your template, use it
And in your template, use it as:

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

## Properties

Expand Down