@silmar/ng-lightbox
TypeScript icon, indicating that this package has built-in type declarations

5.0.5 • Public • Published

@silmar/ng-lightbox

npm (scoped) pipeline status NPM

Really simple lightbox

Install

npm i @silmar/ng-lightbox
// or
yarn add @silmar/ng-lightbox

Usage

The very basic usage is as follows:

main.ts

// ....
import 'hammerjs';
// ....

app.module.ts

import {BrowserModule, HammerModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';

import {AppComponent} from './app.component';
import {NgLightboxModule} from '@silmar/ng-lightbox';

@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        BrowserModule,
        HammerModule, // <-- For Angular 9
        NgLightboxModule // <-- import the carousel module
    ],
    providers: [],
    bootstrap: [AppComponent]
})
export class AppModule {
}

app.component.html

<si-ng-lightbox>
  <img *ngFor="let img of gallery" src="{{img}}" height="200" [siLightboxItem]="img" class="item"/>
</si-ng-lightbox>

Demo

Visit the demo

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @silmar/ng-lightbox

    Weekly Downloads

    24

    Version

    5.0.5

    License

    MIT

    Unpacked Size

    173 kB

    Total Files

    18

    Last publish

    Collaborators

    • ivalentinov
    • iivanov.etg