I'm using angular-meteor for my app and I'd like to know how can I check if the content has been loaded.
I need to wait because I need to scroll my page down. Imagine a view like Instagram in which you are displaying a list of pictures. You move to your profile and you go back to this view, so I'd need to wait to these images and scroll down to the position that I have already saved.
So far I've tried two methods:
AngularJS:
angular.element(document).ready(function() { alert('loaded'); });
Problem: this is triggered after the template has been loaded, but not all content.
jQuery:
$(window).load(function() { alert('loaded'); });
Problem: this is triggered just the first time well. Makes sense because it's a SPA
I know a directive may fix this problem but I have to load a lot of different images and the fix is going to be a bit dirty.
I'm trying to find another solution with Meteor but I couldn't find anything.