Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Light-weight, simple image lightbox and image viewer for AngularJS

License

Notifications You must be signed in to change notification settings

rustygreen/angular-lightbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED: angular-lightbox

Light-weight, simple image lightbox and image viewer for AngularJS (1.x).

Installation

bower:

bower install https://github.com/rustygreen/angular-lightbox.git

npm:

npm install https://github.com/rustygreen/angular-lightbox.git

yarn:

yarn add https://github.com/rustygreen/angular-lightbox.git

raw github:

<script src="https://rawgit.com/rustygreen/angular-lightbox/master/src/angular-lightbox.js"></script>

Usage

Add module:

angular.module('yourApp', ['angular-lightbox']);

Turn image into lightbox on click:

<img src="..." lightbox/>

Customization:

angular.module('yourApp', ['angular-lightbox'])
  .config(function(angularLightboxConfig) {
    angular.extend(angularLightboxConfig, {
      modalTemplate: 'YOUR_CUSTOM_TEMPLATE',
      imgTitle: 'Click to enlarge image'
    });
  });

About

Light-weight, simple image lightbox and image viewer for AngularJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages