Skip to content

Commit b4c839d

Browse files
authored
chore(README): Add vue-lazyload
1 parent 2108fe4 commit b4c839d

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,21 @@ yarn dev
1919
Install the package:
2020

2121
```
22-
npm install vue-image-lightbox
23-
yarn add vue-image-lightbox
22+
npm install vue-image-lightbox vue-lazyload
23+
yarn add vue-image-lightbox vue-lazyload
2424
```
2525

2626
Then import it in your project
27+
At your entry point (`main.js` normally)
28+
```javascript
29+
import Vue from 'vue'
30+
import VueLazyload from 'vue-lazyload'
31+
...
32+
Vue.use(VueLazyLoad)
33+
```
2734

28-
```js
35+
and use the lightbox:
36+
```javascript
2937
import Lightbox from 'vue-image-lightbox'
3038

3139
export default {
@@ -172,4 +180,4 @@ How to use:
172180

173181
## CREDITS
174182

175-
Most of the CSS belongs to [react-images](https://github.com/jossmac/react-images)
183+
Most of the CSS belongs to [react-images](https://github.com/jossmac/react-images)

0 commit comments

Comments
 (0)