m00s / angular-photoswipe

An angular directive for PhotoSwipe image gallery
MIT License
73 stars 42 forks source link

Problem with template URL #6

Closed rhclayto closed 8 years ago

rhclayto commented 8 years ago

While trying to use this module, I encountered an error with the default URL for the template defined in the directive.

function linkFn(scope, iElement, iAttrs) {
        scope.template = scope.template || 'views/ng-photoswipe.html';

        scope.$on(scope.startOn, function () {
          scope.start();
        });

This caused my browser to look for the template at http://example.com/views/ng-photoswipe.html, rather than within the ng-photoswipe directory (in bower_components).

m00s commented 8 years ago

@rhclayto I'll work on this soon, thanks

m00s commented 8 years ago

@rhclayto If you still have issues with the template let me know. Here a working fiddle

vishwas-ganguly commented 7 years ago

Hi @m00s , I am still not able to run this.Can you please share a working copy