I am trying to scroll to an element on the page after I \'show\' it. I.E. i have a very long list of users and I display them as a list. Each element has an edit icon you can
you posted a question about this on my blog as well in the comments.
Without looking at all of your code, I can only guess at this, but I can tell you a few things that might help:
So it looks like to me that it's trying to process the scroll before it processes the value to show the form. To fix this I'd try either refactoring the code you're using to show the form, or wrapping your $anchorScroll call in a $timeout to ensure it's excuted after the show's watch.
I hope that helps.