docs($anchorScroll): fix example controller and style

Changed controller name in example html to ScrollCtrl to match name in example js.
Add styling to example html so scrollable area is not obtrusive to documentation page design.

Closes #3898
This commit is contained in:
Ben Lesh 2013-09-05 22:10:45 -04:00 committed by Pete Bacon Darwin
parent 5fc6eb0b5d
commit 2fe5a2def0

View file

@ -16,7 +16,7 @@
* @example
<example>
<file name="index.html">
<div ng-controller="MainCtrl">
<div id="scrollArea" ng-controller="ScrollCtrl">
<a ng-click="gotoBottom()">Go to bottom</a>
<a id="bottom"></a> You're at the bottom!
</div>
@ -34,6 +34,11 @@
}
</file>
<file name="style.css">
#scrollArea {
height: 350px;
overflow: auto;
}
#bottom {
display: block;
margin-top: 2000px;