Skip to content

Commit efe8e40

Browse files
committed
update docs
1 parent e5efb11 commit efe8e40

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ UMD builds can be used directly in the browser via a `<script>` tag.
6060
```
6161

6262
```js
63-
import VueFinalModal from 'vue-final-modal'
63+
import { VueFinalModal } from 'vue-final-modal'
6464

6565
export default {
6666
components: {

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ UMD builds can be used directly in the browser via a `<script>` tag.
6060
```
6161

6262
```js
63-
import VueFinalModal from 'vue-final-modal'
63+
import { VueFinalModal } from 'vue-final-modal'
6464

6565
export default {
6666
components: {

docs/content/en/setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export default {
4545
```js[main.js]
4646
4747
48-
import VueFinalModal from 'vue-final-modal'
48+
import { VueFinalModal } from 'vue-final-modal'
4949
50-
Vue.use(VueFinalModal)
50+
Vue.component('VueFinalModal', VueFinalModal)
5151
```
5252

5353
## Server Side Render
@@ -65,9 +65,9 @@ export default {
6565
```js[vue-final-modal.js]
6666
6767
68-
import VueFinalModal from 'vue-final-modal/plugin'
68+
import { VueFinalModal } from 'vue-final-modal'
6969
70-
Vue.use(VueFinalModal)
70+
Vue.component('VueFinalModal', VueFinalModal)
7171
```
7272

7373
## CDN

0 commit comments

Comments
 (0)