0

Visit http://fiddle.jshell.net/XDaEk/638/
using javscript image popup working fine

Visit http://jsfiddle.net/36BYs/56/ using angularjs image popup not working - i want to image popup using angularjs ng-repeat visit above link to find solution.

Thanks in advance..

2 Answers 2

1

I have updated your fiddle to add directive. I have added following directive:

NOTE: You need to wait till your ng-repeat finishes rendering the elements. See scope.$parent.$last inside directive

app.directive('imagelist', function() {
  return {
    restrict: 'A',
    scope: {},
    link: function(scope, element, attrs) {
      if (scope.$parent.$last) {
        $('.gallery-items').imagelistexpander({
          prefix: "gallery-"
        });
      }

    }
  }
});
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you Rahul. Great job :) :) :)
0

Use this Library. angular-modal-gallery

i think this one is best

1 Comment

i want to open image with description also and title with separate division. is there any other solution for it ??

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.