How can I achieve the equivalent of window.onload event in Angular?
I am looking to fade out and remove my preloader, but only after all resources such as images are fully loaded. Using $viewContentLoaded alone does not cover this scenario since it indicates only html insertion into the view (I am using ngRoute).
I want to capture the window.onload event, but I am unsure of the best practice for doing so in Angular to ensure that the digest cycle is triggered properly.