mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-04 08:58:16 +08:00
docs(anchorScroll): correct word "location"
This commit is contained in:
committed by
Pawel Kozlowski
parent
d4e7274d4b
commit
4fe4e7457c
@@ -53,7 +53,7 @@ function $AnchorScrollProvider() {
|
||||
}
|
||||
|
||||
// does not scroll when user clicks on anchor link that is currently on
|
||||
// (no url change, no $locaiton.hash() change), browser native does scroll
|
||||
// (no url change, no $location.hash() change), browser native does scroll
|
||||
if (autoScrollingEnabled) {
|
||||
$rootScope.$watch(function autoScrollWatch() {return $location.hash();},
|
||||
function autoScrollWatchAction() {
|
||||
|
||||
Reference in New Issue
Block a user