Skip to content

Commit

Permalink
Better directive documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
neves committed Jul 20, 2017
1 parent 8874322 commit 2c4944e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Vue.use(money, {precision: 4})
</script>
```

### C. Use as directive: https://jsfiddle.net/auom8st8/
### C. Use as directive: https://jsfiddle.net/nj3cLoum/2/
Must use `vmodel.lazy` to bind works properly.
```html
<template>
Expand All @@ -79,12 +79,12 @@ Must use `vmodel.lazy` to bind works properly.
prefix: 'R$ ',
suffix: ' #',
precision: 2,
masked: false
masked: false /* doesn't work with directive */
}
}
},
directives: {VMoney}
directives: {money: VMoney}
}
</script>
```
Expand All @@ -94,11 +94,11 @@ Must use `vmodel.lazy` to bind works properly.
| property | Required | Type | Default | Description |
|-----------|----------|---------|---------|---------------------------------------------------------|
| precision | **true** | Number | 2 | How many decimal places |
| decimal | false | String | "." | Decimal separator |
| thousands | false | String | "," | Thousands separator |
| decimal | false | String | "." | Decimal separator |
| thousands | false | String | "," | Thousands separator |
| prefix | false | String | "" | Currency symbol followed by a Space, like "R$ " |
| suffix | false | String | "" | Percentage for example: " %" |
| masked | false | Boolean | false | If the component output should include the mask or not |
| masked | false | Boolean | false | If the component output should include the mask or not |

### References

Expand Down

0 comments on commit 2c4944e

Please sign in to comment.