
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
angularjs-lightbox
Advanced tools
A minimal lightbox directive for AngularJS. No other dependencies!
Check out the demo page!
This project is available as npm package angularjs-lightbox
:
npm install angularjs-lightbox
Include the directive sources (Javascript and CSS) in your AngularJS application:
<script src="https://code.angularjs.org/1.7.8/angular.min.js"></script>
<script src="angularjs-lightbox/src/angular-lightbox.js"></script>
<link type="text/css" rel="stylesheet" href="angularjs-lightbox/src/angular-lightbox.css">
Declare an array of image URLs, or a single URL:
var app = angular.module('MyApp', ['angular-lightbox']);
app.controller('MyController', function($scope) {
$scope.myImages = ['foobar.png', 'foobaz.jpg', 'barbaz.gif'];
$scope.imageUrl = 'foobar2.png';
});
In your view, use the lightbox
attribute on any element, and use the lightbox-trigger
class on any child element to trigger the lightbox opening.
Example for a list:
<ul lightbox="myImages">
<li ng-repeat="image in myImages">
<a href="image" class="lightbox-trigger">{{ image }}</a>
</li>
</ul>
Example for a single image:
<span lightbox="imageUrl">
<a href class="lightbox-trigger">link</a>
</span>
FAQs
A minimal lightbox directive for AngularJS.
The npm package angularjs-lightbox receives a total of 20 weekly downloads. As such, angularjs-lightbox popularity was classified as not popular.
We found that angularjs-lightbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.