Skip to content

Commit d40cad4

Browse files
committed
doc: update plugin initialization
1 parent 038a7fb commit d40cad4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ npm i vue-ellipse-progress
3636
```
3737
The component is provided as a Vue.js plugin. So just initialize it in your ``main.js``:
3838
```js
39+
import { createApp } from "vue";
3940
import VueEllipseProgress from 'vue-ellipse-progress';
40-
41-
Vue.use(VueEllipseProgress);
42-
43-
// Vue.use(VueEllipseProgress, "vep"); you can define a name and use the plugin like <vep/>
41+
createApp(App).use(VueEllipseProgress);
42+
// createApp(App).use(VueEllipseProgress, "vep"); you can define a name and use the plugin like <vep/>
4443
```
4544

4645
### CDN

0 commit comments

Comments
 (0)