Skip to content

Commit ba5a5f1

Browse files
committed
add CDN installation
1 parent 011757c commit ba5a5f1

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ $ npm install vue-numeric --save
2222
### Install as Component
2323
```js
2424
import Vue from 'vue'
25-
25+
import VueNumeric from 'vue-numeric
26+
2627
export default {
2728
name: 'App',
2829
@@ -36,10 +37,20 @@ export default {
3637
```js
3738
import Vue from 'vue'
3839
import VueNumeric from 'vue-numeric'
39-
40+
4041
Vue.use(VueNumeric)
4142
```
4243
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+
4354
## Usage
4455
4556
![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)