From b09595a3c12ba761772084b94767b635c5bbfaf2 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 10 Nov 2011 18:47:47 -0800 Subject: fix(doc) cleanup all api doc link warnings --- .../content/guide/dev_guide.services.$location.ngdoc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'docs/content/guide/dev_guide.services.$location.ngdoc') diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc index a8e79111..b1a3c23a 100644 --- a/docs/content/guide/dev_guide.services.$location.ngdoc +++ b/docs/content/guide/dev_guide.services.$location.ngdoc @@ -134,7 +134,7 @@ current URL without creating a new browser history record you can call: Note that the setters don't update `window.location` immediately. Instead, `$location` service is -aware of the {@link api/angular.scope scope} life-cycle and coalesces multiple `$location` +aware of the {@link api/angular.module.NG.$rootScope.Scope scope} life-cycle and coalesces multiple `$location` mutations into one "commit" to the `window.location` object during the scope `$digest` phase. Since multiple changes to the $location's state will be pushed to the browser as a single change, it's enough to call the `replace()` method just once to make the entire "commit" a replace operation @@ -210,7 +210,7 @@ In this mode, `$location` uses Hashbang URLs in all browsers. ### Example
-angular.service('$locationConfig', function() {
+angular.module.NG('$locationConfig', function() {
   return {
     html5Mode: false,
     hashPrefix: '!'
@@ -258,7 +258,7 @@ having to worry about whether the browser displaying your app supports the histo
 ### Example
 
 
-angular.service('$locationConfig', function() {
+angular.module.NG('$locationConfig', function() {
   return {
     html5Mode: true,
     hashPrefix: '!'
@@ -461,7 +461,7 @@ In this examples we use ``
 
   function initEnv(name) {
     var root = angular.element(document.getElementById(name + '-mode'));
-    var scope = angular.scope(null, {
+    var scope = angular.module.NG.$rootScope.Scope(null, {
       $locationConfig: {html5Mode: true, hashPrefix: '!'},
       $browser: browsers[name],
       $document: root,
@@ -488,11 +488,11 @@ In this examples we use ``
 
 The `$location` service allows you to change only the URL; it does not allow you to reload the
 page. When you need to change the URL and reload the page or navigate to a different page, please
-use a lower level API, {@link api/angular.service.$window $window.location.href}.
+use a lower level API, {@link api/angular.module.NG.$window $window.location.href}.
 
 ## Using $location outside of the scope life-cycle
 
-`$location` knows about Angular's {@link api/angular.scope scope} life-cycle. When a URL changes in
+`$location` knows about Angular's {@link api/angular.module.NG.$rootScope.Scope scope} life-cycle. When a URL changes in
 the browser it updates the `$location` and calls `$apply` so that all $watchers / $observers are
 notified.
 When you change the `$location` inside the `$digest` phase everything is ok; `$location` will
@@ -512,10 +512,10 @@ hashPrefix.
 # Testing with the $location service
 
 When using `$location` service during testing, you are outside of the angular's {@link
-api/angular.scope scope} life-cycle. This means it's your responsibility to call `scope.$apply()`.
+api/angular.module.NG.$rootScope.Scope scope} life-cycle. This means it's your responsibility to call `scope.$apply()`.
 
 
-angular.service('$serviceUnderTest', function($location) {
+angular.module.NG('$serviceUnderTest', function($location) {
   // whatever it does...
 };
 
@@ -523,7 +523,7 @@ describe('$serviceUnderTest', function() {
   var scope, $location, $sut;
 
   beforeEach(function() {
-    scope = angular.scope();
+    scope = angular.module.NG.$rootScope.Scope();
     $location = scope.$service('$location');
     $sut = scope.$service('$serviceUnderTest');
   });
@@ -636,7 +636,7 @@ this.$watch('$location.path()', function(scope, path) {
 
 # Related API
 
-* {@link api/angular.service.$location $location API}
+* {@link api/angular.module.NG.$location $location API}
 
 
 
-- 
cgit v1.2.3