1.2.2 • Published 4 years ago

@mintjamsinc/vue-lazy v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

vue-lazy

A reusable lazy directive for Vue.js 2.x.

Installation

npm install --save-dev @mintjamsinc/vue-lazy

Usage

import VueLazy from '@mintjamsinc/vue-lazy';
Vue.use(VueLazy);
<img v-lazy:src="image.jpg">

<div v-lazy:background-image="image.jpg"></div>

If you want to register a directive locally:

import {lazy} from '@mintjamsinc/vue-lazy';
export default {
  directives: {
    lazy,
  },
}

License

MIT

Copyright (c) 2021 MintJams Inc.

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago