Skip to content

Commit

Permalink
Add description how to use with nuxt (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailsidorov authored Jun 5, 2021
1 parent 0d09014 commit 964b5ae
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,35 @@ Vue.notify({

## Usage

### Nuxt.js

#### nuxt.config.js

```js
plugins: [
{ src: '~/plugins/notifications-ssr', ssr: true },
{ src: '~/plugins/notifications-client', ssr: false }
]
```

#### notifications-ssr.js

```js
import Notifications from 'vue-notification/dist/ssr.js';
import Vue from 'vue';

Vue.use(Notifications);
```

#### notifications-client.js

```js
import Notifications from 'vue-notification';
import Vue from 'vue';

Vue.use(Notifications);
```

### Component props

The majority of settings for the Notifications component are configured using props:
Expand Down

0 comments on commit 964b5ae

Please sign in to comment.