When using AngularJS, how can I cause the browser's viewport to jump to an element on the same page?
Without AngularJS, the following
<a href="#heading">Go to Heading</a>
<h2 id="heading">Heading</h2>
will cause the browser's viewport to jump to the heading if the link is clicked.
How can I make this work when using AngularJS?