Horje
https://www.npmjs.com/package/ngx-lightbox Code Example
https://www.npmjs.com/package/ngx-lightbox
import { Lightbox } from 'ngx-lightbox';

export class AppComponent {
  private _album: Array = [];
  constructor(private _lightbox: Lightbox) {
    for (let i = 1; i <= 4; i++) {
      const src = 'demo/img/image' + i + '.jpg';
      const caption = 'Image ' + i + ' caption here';
      const thumb = 'demo/img/image' + i + '-thumb.jpg';
      const album = {
         src: src,
         caption: caption,
         thumb: thumb
      };

      this._albums.push(album);
    }
  }

  open(index: number): void {
    // open lightbox
    this._lightbox.open(this._albums, index);
  }

  close(): void {
    // close lightbox programmatically
    this._lightbox.close();
  }
}




Whatever

Related
Cannot read property 'manifest' of undefine Code Example Cannot read property 'manifest' of undefine Code Example
error: FlutterForegroundPlugin() has private access in FlutterForegroundPlugin Code Example error: FlutterForegroundPlugin() has private access in FlutterForegroundPlugin Code Example
kdenlive blurry vertical background Code Example kdenlive blurry vertical background Code Example
static jump router cisco Code Example static jump router cisco Code Example
int array to integer Code Example int array to integer Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7