Skip to content

Using Two Lightbox Templates #81

@SDillon001

Description

@SDillon001

Thanks for putting this repo up, it's exactly what I was looking for! I've run into one issue though, I've added lightboxes on two different views and I'd like to specify two different templates. I've added

angular.module('app').config(function (LightboxProvider) {
  // set a custom template
  LightboxProvider.templateUrl = 'path/to/your-template.html';
});

in my two respective controllers with the appropriate paths to the two different lightbox template.html views, but both lightboxes are pulling from the same custom template? Any thoughts?

Here's a link to my issue branch timeline-modal-view

Any help is much appreciated. The biggest problem is that for some reason, while it's pulling the custom lightbox template from 'views/lightbox.html', it's not pulling the window resizer function LightboxProvider.calculateModalDimensions which is really unfortunate.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions