diff options
| author | Ben Lesh | 2013-09-05 22:10:45 -0400 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-09 21:14:57 +0100 | 
| commit | 2fe5a2def026ac1aa63a98be7135b93784677129 (patch) | |
| tree | 258ee7d1c26867baf19666274dcc926c13edeff9 /src/ng/anchorScroll.js | |
| parent | 5fc6eb0b5d8598190dc625254a609a1a4e5ae897 (diff) | |
| download | angular.js-2fe5a2def026ac1aa63a98be7135b93784677129.tar.bz2 | |
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
Diffstat (limited to 'src/ng/anchorScroll.js')
| -rw-r--r-- | src/ng/anchorScroll.js | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/ng/anchorScroll.js b/src/ng/anchorScroll.js index a87995cf..263562bf 100644 --- a/src/ng/anchorScroll.js +++ b/src/ng/anchorScroll.js @@ -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; | 
