Newton's Principia Mathematica

    @mintjamsinc/vue-lazy

    1.2.2 • Public • Published

    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.

    Keywords

    Install

    npm i @mintjamsinc/vue-lazy

    DownloadsWeekly Downloads

    1

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    3.19 kB

    Total Files

    4

    Last publish

    Collaborators

    • mintjams-bot
    • kenichif