Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Two Lightbox Templates #81

Open
SDillon001 opened this issue Jun 20, 2017 · 1 comment
Open

Using Two Lightbox Templates #81

SDillon001 opened this issue Jun 20, 2017 · 1 comment

Comments

@SDillon001
Copy link

SDillon001 commented Jun 20, 2017

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

@SDillon001
Copy link
Author

Looks like this was solved here: compact/angular-bootstrap-lightbox/issues/69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant