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

Problem with template URL #6

Closed
rhclayto opened this issue Jan 10, 2016 · 3 comments
Closed

Problem with template URL #6

rhclayto opened this issue Jan 10, 2016 · 3 comments

Comments

@rhclayto
Copy link

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
Copy link
Owner

m00s commented Jan 10, 2016

@rhclayto I'll work on this soon, thanks

@m00s m00s closed this as completed in dbdd5e9 Feb 15, 2016
@m00s
Copy link
Owner

m00s commented Feb 15, 2016

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

@vishwas-ganguly
Copy link

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

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

3 participants