🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@silmar/ng-lightbox

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@silmar/ng-lightbox

[![npm (scoped)](https://img.shields.io/npm/v/@silmar/ng-lightbox.svg)](https://www.npmjs.com/package/@silmar/ng-lightbox) [![pipeline status](https://gitlab.com/etg-public/silmar-ng-lightbox/badges/master/pipeline.svg)](https://gitlab.com/etg-public/silm

5.0.6
latest
Source
npm
Version published
Weekly downloads
7
-61.11%
Maintainers
2
Weekly downloads
 
Created
Source

@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

Keywords

angular

FAQs

Package last updated on 06 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts