Skip to content

Quasar help in installation.md #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,35 @@ First install from NPM, then add `portal-vue/nuxt` to modules section of `nuxt.c
}
```

### Quasar (installing globally)

:::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.
Expand Down