@@ -12,13 +12,10 @@ var XHR = window.XMLHttpRequest || function() {
12
12
13
13
14
14
/**
15
- * @ngdoc service
16
- * @name angular.service .$browser
15
+ * @ngdoc object
16
+ * @name angular.module.NG .$browser
17
17
* @requires $log
18
- *
19
18
* @description
20
- * Constructor for the object exposed as $browser service.
21
- *
22
19
* This object has two goals:
23
20
*
24
21
* - hide all the global state in the browser caused by the window object
@@ -78,8 +75,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
78
75
79
76
/**
80
77
* @ngdoc method
81
- * @name angular.service .$browser#xhr
82
- * @methodOf angular.service .$browser
78
+ * @name angular.module.NG .$browser#xhr
79
+ * @methodOf angular.module.NG .$browser
83
80
*
84
81
* @param {string } method Requested method (get|post|put|delete|head|json)
85
82
* @param {string } url Requested url
@@ -157,8 +154,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
157
154
158
155
/**
159
156
* @ngdoc method
160
- * @name angular.service .$browser#addPollFn
161
- * @methodOf angular.service .$browser
157
+ * @name angular.module.NG .$browser#addPollFn
158
+ * @methodOf angular.module.NG .$browser
162
159
*
163
160
* @param {function() } fn Poll function to add
164
161
*
@@ -197,8 +194,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
197
194
198
195
/**
199
196
* @ngdoc method
200
- * @name angular.service .$browser#url
201
- * @methodOf angular.service .$browser
197
+ * @name angular.module.NG .$browser#url
198
+ * @methodOf angular.module.NG .$browser
202
199
*
203
200
* @description
204
201
* GETTER:
@@ -211,7 +208,7 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
211
208
* Returns its own instance to allow chaining
212
209
*
213
210
* NOTE: this api is intended for use only by the $location service. Please use the
214
- * {@link angular.service .$location $location service} to change url.
211
+ * {@link angular.module.NG .$location $location service} to change url.
215
212
*
216
213
* @param {string } url New url (when used as setter)
217
214
* @param {boolean= } replace Should new url replace current history record ?
@@ -248,8 +245,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
248
245
249
246
/**
250
247
* @ngdoc method
251
- * @name angular.service .$browser#onUrlChange
252
- * @methodOf angular.service .$browser
248
+ * @name angular.module.NG .$browser#onUrlChange
249
+ * @methodOf angular.module.NG .$browser
253
250
* @TODO (vojta): refactor to use node's syntax for events
254
251
*
255
252
* @description
@@ -265,7 +262,7 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
265
262
* The listener gets called with new url as parameter.
266
263
*
267
264
* NOTE: this api is intended for use only by the $location service. Please use the
268
- * {@link angular.service .$location $location service} to monitor url changes in angular apps.
265
+ * {@link angular.module.NG .$location $location service} to monitor url changes in angular apps.
269
266
*
270
267
* @param {function(string) } listener Listener function to be called when url changes.
271
268
* @return {function(string) } Returns the registered listener fn - handy if the fn is anonymous.
@@ -298,8 +295,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
298
295
299
296
/**
300
297
* @ngdoc method
301
- * @name angular.service .$browser#cookies
302
- * @methodOf angular.service .$browser
298
+ * @name angular.module.NG .$browser#cookies
299
+ * @methodOf angular.module.NG .$browser
303
300
*
304
301
* @param {string= } name Cookie name
305
302
* @param {string= } value Cokkie value
@@ -359,8 +356,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
359
356
360
357
/**
361
358
* @ngdoc method
362
- * @name angular.service .$browser#defer
363
- * @methodOf angular.service .$browser
359
+ * @name angular.module.NG .$browser#defer
360
+ * @methodOf angular.module.NG .$browser
364
361
* @param {function() } fn A function, who's execution should be defered.
365
362
* @param {number= } [delay=0] of milliseconds to defer the function execution.
366
363
* @returns {* } DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
@@ -388,8 +385,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
388
385
/**
389
386
* THIS DOC IS NOT VISIBLE because ngdocs can't process docs for foo#method.method
390
387
*
391
- * @name angular.service .$browser#defer.cancel
392
- * @methodOf angular.service .$browser.defer
388
+ * @name angular.module.NG .$browser#defer.cancel
389
+ * @methodOf angular.module.NG .$browser.defer
393
390
*
394
391
* @description
395
392
* Cancels a defered task identified with `deferId`.
@@ -414,8 +411,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
414
411
415
412
/**
416
413
* @ngdoc method
417
- * @name angular.service .$browser#addCss
418
- * @methodOf angular.service .$browser
414
+ * @name angular.module.NG .$browser#addCss
415
+ * @methodOf angular.module.NG .$browser
419
416
*
420
417
* @param {string } url Url to css file
421
418
* @description
@@ -432,8 +429,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
432
429
433
430
/**
434
431
* @ngdoc method
435
- * @name angular.service .$browser#addJs
436
- * @methodOf angular.service .$browser
432
+ * @name angular.module.NG .$browser#addJs
433
+ * @methodOf angular.module.NG .$browser
437
434
*
438
435
* @param {string } url Url to js file
439
436
*
0 commit comments