You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Get in touch on [![Gitter chat][gitter-image]][gitter-url]
12
12
13
13
---
14
14
15
-
vue-autoNumeric wrap the awesome autoNumeric library and generate an `<input>` element managed by AutoNumeric.
15
+
vue-autoNumeric wraps the awesome autoNumeric library and generate an `<input>` element managed by [AutoNumeric](https://github.com/autoNumeric/autoNumeric/).
16
16
17
17
### Installation
18
18
@@ -22,11 +22,26 @@ yarn add vue-autonumeric
22
22
npm install vue-autonumeric --save
23
23
```
24
24
25
-
You also need to link the [AutoNumeric](https://github.com/autoNumeric/autoNumeric/) library in your html `<head>` tag like so:
25
+
You also need to link the [AutoNumeric](https://github.com/autoNumeric/autoNumeric/) library in your html `<head>` tag since `vue-autonumeric` does not bundle it.
26
+
You can link AutoNumeric either with a CDN like so:
26
27
```html
27
28
<scriptsrc="//unpkg.com/autonumeric"></script>
28
29
```
29
30
31
+
...or by importing it too in your source code:
32
+
33
+
```sh
34
+
yarn add autonumeric
35
+
# or
36
+
npm install autonumeric --save
37
+
```
38
+
39
+
You'll then be able to use the vue-autonumeric component:
40
+
```js
41
+
importAutoNumericfrom'AutoNumeric';
42
+
importVueAutoNumericfrom'vue-autonumeric';
43
+
```
44
+
30
45
### How to use?
31
46
32
47
The AutoNumeric component can be instantiated the same way `AutoNumeric` can.
0 commit comments