diff options
| author | Igor Minar | 2012-06-10 09:01:42 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-06-10 09:01:42 -0700 |
| commit | 5d70e4a89cd9b3d430bb81f438cf03e956d9a9d2 (patch) | |
| tree | 2a9311d9735c938321e581b22fb3e06c40839385 /docs/content/guide/dev_guide.services.$location.ngdoc | |
| parent | b5bba65a9353ca9dc03b8d0c3c9b06d9c4cdacdf (diff) | |
| download | angular.js-5d70e4a89cd9b3d430bb81f438cf03e956d9a9d2.tar.bz2 | |
docs(*): fix various outdated docs and examples
Closes #1030
Diffstat (limited to 'docs/content/guide/dev_guide.services.$location.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.services.$location.ngdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc index c5396b11..209b3abc 100644 --- a/docs/content/guide/dev_guide.services.$location.ngdoc +++ b/docs/content/guide/dev_guide.services.$location.ngdoc @@ -622,11 +622,11 @@ example: </pre> <pre> // js - controller -this.$watch('locationPath', function(path) { +$scope.$watch('locationPath', function(path) { $location.path(path); }); -this.$watch('$location.path()', function(path) { +$scope.$watch('$location.path()', function(path) { scope.locationPath = path; }); </pre> |
