File "galleryConfig.js"

Full Path: /srv/www/www.cadoro.it/app/lib/ion-gallery/src/js/galleryConfig.js
File size: 599 bytes
MIME-type: text/plain
Charset: utf-8

(function(){
  'use strict';

  angular
    .module('ion-gallery')
    .provider('ionGalleryConfig',ionGalleryConfig);

  ionGalleryConfig.$inject = [];

  function ionGalleryConfig(){
    this.config = {
      action_label: 'Done',
      template_gallery: 'gallery.html',
      template_slider:  'slider.html',
      toggle: true,
      row_size: 3,
      fixed_row_size: true,
      zoom_events: true
    };

    this.$get = function() {
        return this.config;
    };

    this.setGalleryConfig = function(config) {
        angular.extend(this.config, this.config, config);
    };
  }

})();