Skip to content

Commit 736b220

Browse files
authored
Update README.md
1 parent a071b31 commit 736b220

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@ Input field component to display a formatted currency value based on [Vue](https
1515

1616
## Installation
1717

18+
### Install via CDN
19+
```html
20+
<script src="https://unpkg.com/vue"></script>
21+
<script src="https://unpkg.com/vue-numeric"></script>
22+
23+
<script>
24+
Vue.use(VueNumeric.default)
25+
</script>
26+
```
27+
### Install via NPM
1828
```sh
1929
$ npm install vue-numeric --save
2030
```
2131

22-
### Install as Component
32+
#### Register as Component
2333
```js
2434
import Vue from 'vue'
2535
import VueNumeric from 'vue-numeric'
@@ -33,24 +43,14 @@ export default {
3343
}
3444
```
3545

36-
### Install as Plugin
46+
#### Register as Plugin
3747
```js
3848
import Vue from 'vue'
3949
import VueNumeric from 'vue-numeric'
4050

4151
Vue.use(VueNumeric)
4252
```
4353

44-
### Install via CDN
45-
```html
46-
<script src="https://unpkg.com/vue"></script>
47-
<script src="https://unpkg.com/vue-numeric"></script>
48-
49-
<script>
50-
Vue.use(VueNumeric.default)
51-
</script>
52-
```
53-
5454
## Usage
5555

5656
![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)