3

This is my first attempt at Angular so please bear with me.

I have a jQuery slider that usually is initialized at document ready. However this doesn't work when the images are being populated by angular since it will not have finished rendering the DOM.

Is there a way to detect when ng-repeat finished rendering the DOM so that I can call my function?

Thanks in advance

Jonny
  • 2,787
  • 10
  • 40
  • 62
  • possible duplicate of [AngularJS ng-repeat finish event](http://stackoverflow.com/questions/13471129/angularjs-ng-repeat-finish-event) – Satpal Sep 18 '13 at 15:23
  • 1
    Visit [Calling a function when ng-repeat has finished](http://stackoverflow.com/questions/15207788/calling-a-function-when-ng-repeat-has-finished) – Satpal Sep 18 '13 at 15:24

1 Answers1

1

Check out this answer Stack Overflow. Setting a timeout is never a good way to wait til something finishes. I would suggest a custom directive checking to see if you are scope.$last, then you can broadcast an event to the controller.

Community
  • 1
  • 1
Zack Argyle
  • 8,057
  • 4
  • 29
  • 37