Skip to content
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