Requirements: AngularJS 1.2+ Requirements: Jquery 1.3.2+ Requirements: Justified Gallery 3.6.0+
-
include the angular justified gallery as a dependency for your app.
angular.module('myApp', ['angular-justified-gallery'])
-
include the supplied JS and CSS file (or create your own CSS to override defaults).
<script type='text/javascript' src='angular-justified-gallery/angular-justified-gallery.js'></script>
-
That's it -- you're done!
$ bower install angular-justified-gallery
@Todo:
- Integrate all configuration options of Justified Gallery (https://github.com/miromannino/Justified-Gallery)
- Integrate all configuration options of ColorBox (http://www.jacklmoore.com/colorbox/)
- Unit tests, 100% coverage
The insertion of the spinner can be controlled through configuration. It's on by default, but if you'd like to turn it off, simply configure the service:
angular.module('myApp', ['angular-justified-gallery']);
$scope.productImages = [{
title: 'Awesome Product one',
imageUrl: '/uploads/product/one.jpg'
}, {
title: 'Awesome Product two',
imageUrl: '/uploads/product/two.jpg'
}];
<justified-gallery images="productImages"></justified-gallery>
Credit goes to Miro Mannino for his excellent Justified-Gallery and Jack Moore for his awesome colorbox.
Licensed under the MIT license