I'm having an issue with $document.find, I need to scroll to a form error on submit.
var errors = $document.find('.input-name:not(.ng-hide)');
This is called when a form is submitted but has errors. On click it finds nothing, however if I click again a second later it has found the errors and I can scroll to it successfully. I believe it has something to do with watchers and the digest loop, but I've been messing with it for too long and thought I'd ask. Any help appreciated! Thanks