mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-14 08:53:21 +08:00
feat($location): name the watch function to ease debugging
This commit is contained in:
@@ -534,7 +534,7 @@ function $LocationProvider(){
|
||||
|
||||
// update browser
|
||||
var changeCounter = 0;
|
||||
$rootScope.$watch(function() {
|
||||
$rootScope.$watch(function $locationWatch() {
|
||||
if ($browser.url() != currentUrl.absUrl()) {
|
||||
changeCounter++;
|
||||
$rootScope.$evalAsync(function() {
|
||||
|
||||
Reference in New Issue
Block a user