Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix($anchorScroll): fix broken example code with correct controller name #4356

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ng/anchorScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
*
* It also watches the `$location.hash()` and scrolls whenever it changes to match any anchor.
* This can be disabled by calling `$anchorScrollProvider.disableAutoScrolling()`.
*
*
* @example
<example>
<file name="index.html">
<div ng-controller="MainCtrl">
<div ng-controller="ScrollCtrl">
<a ng-click="gotoBottom()">Go to bottom</a>
<a id="bottom"></a> You're at the bottom!
</div>
Expand All @@ -27,7 +27,7 @@
// set the location.hash to the id of
// the element you wish to scroll to.
$location.hash('bottom');

// call $anchorScroll()
$anchorScroll();
}
Expand Down