Skip to content

Commit adb7151

Browse files
Fix SSR docs: Inject modal reference for Nuxt (#652)
Inject model reference instead of VModel which resolves to function which installs the plugin. Explained in detail here: #561 (comment)
1 parent b1a4853 commit adb7151

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/Installation.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ import 'vue-js-modal/dist/styles.css'
5151

5252
Vue.use(VModal, { ... })
5353

54-
/*
5554
export default function(_, inject) {
56-
inject('modal', VModal)
55+
inject('modal', Vue.prototype.$modal)
5756
}
58-
*/
5957
```
6058

6159
::: tip Extracted CSS

0 commit comments

Comments
 (0)