I have a problem with document.ready in angularJS when navigating between several routes in my app. It only works when I use ctrl+f5 (page reload); it seems navigating betwe
Expanding on @davekr's answer, I found I need to add a $timeout to ensure the digest had complete and the html elements were available to query:
function SomeController($scope) {
$scope.$on('$viewContentLoaded', function() {
$timeout(function(){
//Do your stuff
});
});
}
I tried many other events and this was the only way that worked reliably.