How can I execute a function after Angular has finished rendering my template for a controller?
Here is an example of the function I am trying to run. Since the view hasn't finished rendering, there are no elements matched by $('.my-element').
function myFunction(){
$('.my-element').css('color', 'red');
}