Skip to content

Commit 596320b

Browse files
authored
Update README.md
1 parent 872c274 commit 596320b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@ Input field component to display currency value based on [Vue](https://vuejs.org
1919
$ npm install vue-numeric --save
2020
```
2121

22+
### Install as Component
23+
```js
24+
import Vue from 'vue'
25+
26+
export default {
27+
name: 'App',
28+
29+
components: {
30+
VueNumeric
31+
}
32+
}
33+
```
34+
35+
### Install as Plugin
36+
```js
37+
import Vue from 'vue'
38+
import VueNumeric from 'vue-numeric'
39+
40+
Vue.use(VueNumeric)
41+
```
42+
2243
## Usage
2344

2445
![screen shot 2016-12-08 at 2 19 31 pm](https://cloud.githubusercontent.com/assets/15880638/21001265/f2322438-bd51-11e6-8985-f31a45702484.png)

0 commit comments

Comments
 (0)