Trigger after ng-repeat has finished – Angular

If you need to trigger something after a ng-repeat has finished, you’re in luck. The following custom directive will do exactly that.

In my case I had a third party jQuery plugin that wouldn’t work if I triggered it after a document ready. Because the document ready was fired before the ng-repeat finished loading the data.

Add the directive to the element with the ng-repeat and see magic happen.

Create directive

Add directive to ng-repeat

Watch for the finish

More discussion on Stack Overflow

12 comments

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*