Skip to content

Commit acab8ff

Browse files
Add nuxt setup in readme
1 parent df81254 commit acab8ff

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: README.md

+16
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ import MagicGrid from 'vue-magic-grid'
2525
Vue.use(MagicGrid)
2626
```
2727

28+
### Setup with Nuxt
29+
Create a magicgrid.js in your plugin folder
30+
```js
31+
import Vue from 'vue'
32+
import MagicGrid from 'vue-magic-grid'
33+
34+
Vue.use(MagicGrid)
35+
```
36+
37+
Add the plugin in your nuxt.config.js file
38+
```js
39+
plugins: [
40+
{src: '~/plugins/magicgrid.js'}
41+
]
42+
```
43+
2844
### Use
2945
```html
3046
<magic-grid>

0 commit comments

Comments
 (0)