Skip to content

Commit

Permalink
Fix SSR docs: Inject modal reference for Nuxt (euvl#652)
Browse files Browse the repository at this point in the history
Inject model reference instead of VModel which resolves to function which installs the plugin. 

Explained in detail here: euvl#561 (comment)
  • Loading branch information
SaurabhKharivale authored Dec 28, 2020
1 parent b1a4853 commit adb7151
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ import 'vue-js-modal/dist/styles.css'

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

/*
export default function(_, inject) {
inject('modal', VModal)
inject('modal', Vue.prototype.$modal)
}
*/
```

::: tip Extracted CSS
Expand Down

0 comments on commit adb7151

Please sign in to comment.