Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 662 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 662 Bytes

ngGallery

Very simple gallery provider for Angular.js applications

Usage

HTML

<script type="text/javascript" src='../bower_components/angular/angular.min.js'></script>
<script type="text/javascript" src='../src/ngGallery.js'></script>

JavaScript

var app = angular.module('exampleApp', ['ngGallery']);


app.controller('MainCtrl', function (ngGallery) {
  this.open = function () {
    ngGallery.open({ 
      images: ['./img/dw_1.jpg'],
      showClose: true,
      closeByEscape: true
    });
  };
});

References

Heavily inspired by ngDialog.

License

MIT Licensed