@@ -34,10 +34,10 @@ Install the library via npm:
34
34
```
35
35
npm i vue-ellipse-progress
36
36
```
37
- You can initialize the component globally as a plugin or import it a specific component of your app.
37
+ You can initialize the component globally as a plugin or import it in a specific component of your app.
38
38
39
39
#### Initialize as Plugin
40
- Import and initialize the component in your ` main.js ` . After initialization, the component is available under ` <ve-progress/> ` .
40
+ Import and initialize the component in your ` main.js ` . After initialization, the component is available as ` <ve-progress/> ` .
41
41
You can also assign a custom name to the component:
42
42
``` js
43
43
import { createApp } from " vue" ;
@@ -47,21 +47,23 @@ createApp(App).use(veProgress);
47
47
```
48
48
49
49
#### Import component
50
+ You also have the option to import the component directly:
50
51
``` js
51
52
import { VeProgress } from ' vue-ellipse-progress' ;
52
53
```
53
54
54
55
### CDN
55
- Use this option where you have a global Vue.js instance available. You can customize and get the bundled and minified
56
+ You can customize and get the bundled and minified
56
57
component from [ JSDelivr] ( https://www.jsdelivr.com/package/npm/vue-ellipse-progress ) .
57
- Just add the following line to your HTML and start using the component, nothing more is required:
58
-
58
+ Just add the following line to your HTML and initialize the component as plugin:
59
59
``` html
60
60
<script src =" https://cdn.jsdelivr.net/npm/vue-ellipse-progress/dist/vue-ellipse-progress.umd.min.js" ></script >
61
+ ...
62
+ createApp(App).use(veprogress);
61
63
```
62
64
63
65
## Usage
64
- After you have initialized the component, use it everywhere you want in your application :
66
+ After you have initialized the component, you are ready to create your circles :
65
67
``` html
66
68
<ve-progress
67
69
:data =" circles"
0 commit comments