I'm using the Component Router and the routing part works well. But I can't figure out how to run JS to modify the template once the template has loaded (and not before).
For example, I want to run:
$(window).load(function() {
"use strict";
$(".preloader").delay(350).fadeOut('slow');
});
But obviously this can't run until the preloader div is loaded.
What's the best practice for doing this? I fiddled around with OnInit but it felt weird putting UI modifying code in the controller...err...I mean, component.