From 896c50687ddb73903cf6bdec82972336161ced27 Mon Sep 17 00:00:00 2001 From: Retne Date: Wed, 3 Mar 2021 16:48:45 +0000 Subject: [PATCH 1/2] Update installation.md to add Quasar config. This would have saved me a bit of digging (albeit not as much had I not put a typo in the tags, but anyway... ;) ). --- docs/guide/installation.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 85970a3..bf00f53 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -63,6 +63,33 @@ First install from NPM, then add `portal-vue/nuxt` to modules section of `nuxt.c } ``` +### Quasar use + +:::tip Hint +Only relevant for users of the [Quasar](https://quasar.dev) framework +::: + +First install from NPM, then add a file at src/boot/portal.js with the following contents: + +```javascript +import PortalVue from 'portal-vue' +export default({ Vue }) => { + Vue.use(PortalVue) +} +``` + +and finally add 'portal' to the boot array in quasar.conf.js + +```javascript + // app boot file (/src/boot) + // --> boot files are part of "main.js" + // https://quasar.dev/quasar-cli/boot-files + boot: [ + 'aBunchOfOtherBits', + 'portal' + ], +``` + ## Options When installing with `Vue.use()`, you can pass options to change the component names. From 2481d75e5d9b886f921f55c1aaeec4b87f1ce1c0 Mon Sep 17 00:00:00 2001 From: Retne Date: Wed, 3 Mar 2021 17:05:56 +0000 Subject: [PATCH 2/2] Small edit for clarity --- docs/guide/installation.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index bf00f53..3151b5e 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -63,7 +63,7 @@ First install from NPM, then add `portal-vue/nuxt` to modules section of `nuxt.c } ``` -### Quasar use +### Quasar (installing globally) :::tip Hint Only relevant for users of the [Quasar](https://quasar.dev) framework @@ -81,6 +81,7 @@ export default({ Vue }) => { and finally add 'portal' to the boot array in quasar.conf.js ```javascript + ... // app boot file (/src/boot) // --> boot files are part of "main.js" // https://quasar.dev/quasar-cli/boot-files @@ -88,6 +89,7 @@ and finally add 'portal' to the boot array in quasar.conf.js 'aBunchOfOtherBits', 'portal' ], + ... ``` ## Options