mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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:
parent
5fc6eb0b5d
commit
2fe5a2def0
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue