# plus-lazy-image

> Angular 4+ lazy load images

Latest version **0.0.3** (published 2018-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install plus-lazy-image
pnpm add plus-lazy-image
yarn add plus-lazy-image
bun add plus-lazy-image
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-03-06 |
| First published | 2018-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 461.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aleksandr Krykhtenko |
| Maintainers | alexsanqp |
| Keywords | angular, angular 4, lazy load images, images, angular image, angular 4 lazy load images, typescript |

## Links

- npm: https://www.npmjs.com/package/plus-lazy-image
- Repository: https://github.com/alexsanqp/plus-lazy-image
- Homepage: https://github.com/alexsanqp/plus-lazy-image#readme
- Issues: https://github.com/alexsanqp/plus-lazy-image/issues
- npm.io page: https://npm.io/package/plus-lazy-image

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2018-03-06
- 0.0.2 — 2018-03-05
- 0.0.1 — 2018-03-05

## README

## Description
> A lazy loading imaging for Angular 4.

## Installation

```sh
$ npm install --save plus-lazy-image
```

## Usage

Import the `PlusLazyImageModule` in your module:

```typescript
import { NgModule } from '@angular/core';
//...
import { PlusLazyImageModule } from "plus-lazy-image";

@NgModule({
  imports: [
    //...
    PlusLazyImageModule
  ],
})
export class AppModule { }
```

How to use with image...

```html
<div class="some-class">
    <img [plus-lazy-image]="getYourImageUrl()" alt="">
</div>
```
Or with div...
```html
<div class="some-class">
    <div [plus-lazy-bg]="true" [plus-lazy-image]="getYourImageUrl()"></div>
</div>
```

## Input parameters

| Input | Required | Details |
| ---- | ---- | ---- |
| [plus-lazy-image] | Required | String, Image url |
| [plus-lazy-bg] | Optional | Boolean, `Default: false` Set on true if you need set background image |
| [plus-pre-image] | Optional | String, Image url for preloading display |
| [plus-pre-loader] | Optional | Boolean, `Default: true`, if set to `false`, image preloader not displaying |
| [plus-start-load] | Optional | `Subject<boolean> or ReplaySubject<boolean>` If you need to set images, for example by clicking on button, etc.|

## Output parameters
| Input | Required | Details |
| ---- | ---- | ---- |
| [plus-on-load] | Optional | Event fire when image is loaded |


## License

ISC © [Alexander Kryhtenko](https://github.com/alexsanqp)

---
_Source: https://npm.io/package/plus-lazy-image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
