Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Updated as request from nstudio#99
  • Loading branch information
jofftiquez authored Dec 21, 2018
1 parent 174dcf5 commit eb0e139
Showing 1 changed file with 8 additions and 11 deletions.
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

0 comments on commit eb0e139

Please sign in to comment.