angular/angular.js — pull request #4758 by petebacondarwin (2013-11-02 09:25:06+00:00)
Title: fix(ngInclude): only run anchorScroll after animation is done

We need to wait until animations have added the content to the document before
trying to `autoscroll` to anchors that may have been inserted.

I am a little unsure about how I refactored the tests to check for this issue.

Also, could someone check whether other things should be moved into the `afterAnimation`
handler, such as the `$compile`, the `$emit` or the `$eval`?