aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVojta Jina2011-11-11 17:15:22 -0800
committerMisko Hevery2011-11-14 20:31:19 -0800
commitacbd7cdf320f0570fcc1952c8680d4c78bc8fa2c (patch)
tree2483609ada03b9e6ff477596f0402dc24fdd7518 /src
parent035c7510763a9742294d51ba55aea0b6dd08ea58 (diff)
downloadangular.js-acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c.tar.bz2
style(docs): make jslint happy - fix some warnings
Diffstat (limited to 'src')
-rw-r--r--src/Angular.js10
-rw-r--r--src/Injector.js4
-rw-r--r--src/angular-mocks.js148
-rw-r--r--src/directives.js4
-rw-r--r--src/scenario/Runner.js2
-rw-r--r--src/scenario/dsl.js16
-rw-r--r--src/service/Browser.js44
-rw-r--r--src/service/compiler.js10
-rw-r--r--src/service/cookieStore.js14
-rw-r--r--src/service/cookies.js2
-rw-r--r--src/service/defer.js10
-rw-r--r--src/service/document.js2
-rw-r--r--src/service/exceptionHandler.js4
-rw-r--r--src/service/filter.js8
-rw-r--r--src/service/filter/filter.js4
-rw-r--r--src/service/filter/filters.js16
-rw-r--r--src/service/filter/limitTo.js4
-rw-r--r--src/service/filter/orderBy.js4
-rw-r--r--src/service/formFactory.js38
-rw-r--r--src/service/locale.js2
-rw-r--r--src/service/location.js56
-rw-r--r--src/service/log.js18
-rw-r--r--src/service/resource.js6
-rw-r--r--src/service/route.js42
-rw-r--r--src/service/routeParams.js6
-rw-r--r--src/service/scope.js130
-rw-r--r--src/service/sniffer.js2
-rw-r--r--src/service/window.js2
-rw-r--r--src/service/xhr.bulk.js2
-rw-r--r--src/service/xhr.cache.js6
-rw-r--r--src/service/xhr.error.js6
-rw-r--r--src/service/xhr.js10
-rw-r--r--src/widget/form.js2
-rw-r--r--src/widget/input.js2
-rw-r--r--src/widgets.js4
35 files changed, 320 insertions, 320 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 096f5b53..6ee51c57 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -99,9 +99,9 @@ var $$scope = '$scope',
angularDirective = extensionMap(angular, 'directive', lowercase),
/** @name angular.widget */
angularWidget = extensionMap(angular, 'widget', shivForIE),
- /** @name angular.module.NG */
+ /** @name angular.module.ng */
angularInputType = extensionMap(angular, 'inputType', lowercase),
- /** @name angular.module.NG */
+ /** @name angular.module.ng */
angularCallbacks = extensionMap(angular, 'callbacks'),
nodeName_,
uid = ['0', '0', '0'],
@@ -571,7 +571,7 @@ function isLeafNode (node) {
* * If `source` is not an object or array, `source` is returned.
*
* Note: this function is used to augment the Object type in Angular expressions. See
- * {@link angular.module.NG.$filter} for more information about Angular arrays.
+ * {@link angular.module.ng.$filter} for more information about Angular arrays.
*
* @param {*} source The source that will be used to make a copy.
* Can be any type, including primitives, `null`, and `undefined`.
@@ -629,7 +629,7 @@ function copy(source, destination){
* that begin with `$` are ignored.
*
* Note: This function is used to augment the Object type in Angular expressions. See
- * {@link angular.module.NG.$filter} for more information about Angular arrays.
+ * {@link angular.module.ng.$filter} for more information about Angular arrays.
*
* @param {*} o1 Object or value to compare.
* @param {*} o2 Object or value to compare.
@@ -944,7 +944,7 @@ function publishExternalAPI(angular){
'uppercase': uppercase
});
- angularModule.NG = ngModule;
+ angularModule.ng = ngModule;
}
ngModule.$inject = ['$provide', '$injector'];
diff --git a/src/Injector.js b/src/Injector.js
index fbc6d3a0..fd67a25e 100644
--- a/src/Injector.js
+++ b/src/Injector.js
@@ -11,14 +11,14 @@
*
* @param {<string, function()>} modules... A list of module functions or their aliases. See
- * {@link angular.module}. The `NG` module must be explicitly added.
+ * {@link angular.module}. The `ng` module must be explicitly added.
* @returns {function()} Injector function. See {@link angular.module.AUTO.$injector $injector}.
*
* @example
* Typical usage
* <pre>
* // create an injector
- * var $injector = angular.injector('NG');
+ * var $injector = angular.injector('ng');
*
* // use the injector to kick of your application
* // use the type inference to auto inject arguments, or use implicit injection
diff --git a/src/angular-mocks.js b/src/angular-mocks.js
index 57ac83cd..ae0ba65e 100644
--- a/src/angular-mocks.js
+++ b/src/angular-mocks.js
@@ -11,44 +11,44 @@ angular.module = angular.module || {};
/**
* @ngdoc overview
- * @name angular.module.NG_MOCK
+ * @name angular.module.ngMock
* @description
*
- * The `NG_MOCK` is an angular module which is used with `NG` module and adds unit-test configuration as well as useful
+ * The `ngMock` is an angular module which is used with `ng` module and adds unit-test configuration as well as useful
* mocks to the {@link angular.module.AUTO.$injector $injector}.
*/
-angular.module.NG_MOCK = function($provide){
- $provide.service('$browser', angular.module.NG_MOCK.$BrowserProvider);
- $provide.service('$exceptionHandler', angular.module.NG_MOCK.$ExceptionHandlerProvider);
- $provide.service('$log', angular.module.NG_MOCK.$LogProvider);
+angular.module.ngMock = function($provide){
+ $provide.service('$browser', angular.module.ngMock.$BrowserProvider);
+ $provide.service('$exceptionHandler', angular.module.ngMock.$ExceptionHandlerProvider);
+ $provide.service('$log', angular.module.ngMock.$LogProvider);
};
-angular.module.NG_MOCK.$inject = ['$provide'];
+angular.module.ngMock.$inject = ['$provide'];
/**
* @ngdoc object
- * @name angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser
*
* @description
- * This service is a mock implementation of {@link angular.module.NG.$browser}. It provides fake
+ * This service is a mock implementation of {@link angular.module.ng.$browser}. It provides fake
* implementation for commonly used browser apis that are hard to test, e.g. setTimeout, xhr,
* cookies, etc...
*
- * The api of this service is the same as that of the real {@link angular.module.NG.$browser $browser}, except
+ * The api of this service is the same as that of the real {@link angular.module.ng.$browser $browser}, except
* that there are several helper methods available which can be used in tests.
*
* The following apis can be used in tests:
*
* - {@link #xhr} — enables testing of code that uses
- * the {@link angular.module.NG.$xhr $xhr service} to make XmlHttpRequests.
+ * the {@link angular.module.ng.$xhr $xhr service} to make XmlHttpRequests.
* - $browser.defer — enables testing of code that uses
- * {@link angular.module.NG.$defer $defer} for executing functions via the `setTimeout` api.
+ * {@link angular.module.ng.$defer $defer} for executing functions via the `setTimeout` api.
*/
-angular.module.NG_MOCK.$BrowserProvider = function(){
+angular.module.ngMock.$BrowserProvider = function(){
this.$get = function(){
- return new angular.module.NG_MOCK.$Browser();
+ return new angular.module.ngMock.$Browser();
};
};
-angular.module.NG_MOCK.$Browser = function() {
+angular.module.ngMock.$Browser = function() {
var self = this,
expectations = {},
requests = [];
@@ -77,8 +77,8 @@ angular.module.NG_MOCK.$Browser = function() {
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$browser#xhr
- * @methodOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#xhr
+ * @methodOf angular.module.ngMock.$browser
*
* @description
* Generic method for training browser to expect a request in a test and respond to it.
@@ -140,8 +140,8 @@ angular.module.NG_MOCK.$Browser = function() {
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$browser#xhr.expectGET
- * @methodOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#xhr.expectGET
+ * @methodOf angular.module.ngMock.$browser
*
* @description
* Trains browser to expect a `GET` request and respond to it.
@@ -149,14 +149,14 @@ angular.module.NG_MOCK.$Browser = function() {
* @param {string} url Url path for which a request is expected.
* @returns {object} Response configuration object. You can call its `respond()` method to
* configure what should the browser mock return when the response is
- * {@link angular.module.NG_MOCK.$browser#xhr.flush flushed}.
+ * {@link angular.module.ngMock.$browser#xhr.flush flushed}.
*/
self.xhr.expectGET = angular.bind(self, self.xhr.expect, 'GET');
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$browser#xhr.expectPOST
- * @methodOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#xhr.expectPOST
+ * @methodOf angular.module.ngMock.$browser
*
* @description
* Trains browser to expect a `POST` request and respond to it.
@@ -164,14 +164,14 @@ angular.module.NG_MOCK.$Browser = function() {
* @param {string} url Url path for which a request is expected.
* @returns {object} Response configuration object. You can call its `respond()` method to
* configure what should the browser mock return when the response is
- * {@link angular.module.NG_MOCK.$browser#xhr.flush flushed}.
+ * {@link angular.module.ngMock.$browser#xhr.flush flushed}.
*/
self.xhr.expectPOST = angular.bind(self, self.xhr.expect, 'POST');
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$browser#xhr.expectDELETE
- * @methodOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#xhr.expectDELETE
+ * @methodOf angular.module.ngMock.$browser
*
* @description
* Trains browser to expect a `DELETE` request and respond to it.
@@ -179,14 +179,14 @@ angular.module.NG_MOCK.$Browser = function() {
* @param {string} url Url path for which a request is expected.
* @returns {object} Response configuration object. You can call its `respond()` method to
* configure what should the browser mock return when the response is
- * {@link angular.module.NG_MOCK.$browser#xhr.flush flushed}.
+ * {@link angular.module.ngMock.$browser#xhr.flush flushed}.
*/
self.xhr.expectDELETE = angular.bind(self, self.xhr.expect, 'DELETE');
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$browser#xhr.expectPUT
- * @methodOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#xhr.expectPUT
+ * @methodOf angular.module.ngMock.$browser
*
* @description
* Trains browser to expect a `PUT` request and respond to it.
@@ -194,14 +194,14 @@ angular.module.NG_MOCK.$Browser = function() {
* @param {string} url Url path for which a request is expected.
* @returns {object} Response configuration object. You can call its `respond()` method to
* configure what should the browser mock return when the response is
- * {@link angular.module.NG_MOCK.$browser#xhr.flush flushed}.
+ * {@link angular.module.ngMock.$browser#xhr.flush flushed}.
*/
self.xhr.expectPUT = angular.bind(self, self.xhr.expect, 'PUT');
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$browser#xhr.expectJSON
- * @methodOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#xhr.expectJSON
+ * @methodOf angular.module.ngMock.$browser
*
* @description
* Trains browser to expect a `JSON` request and respond to it.
@@ -209,14 +209,14 @@ angular.module.NG_MOCK.$Browser = function() {
* @param {string} url Url path for which a request is expected.
* @returns {object} Response configuration object. You can call its `respond()` method to
* configure what should the browser mock return when the response is
- * {@link angular.module.NG_MOCK.$browser#xhr.flush flushed}.
+ * {@link angular.module.ngMock.$browser#xhr.flush flushed}.
*/
self.xhr.expectJSON = angular.bind(self, self.xhr.expect, 'JSON');
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$browser#xhr.flush
- * @methodOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#xhr.flush
+ * @methodOf angular.module.ngMock.$browser
*
* @description
* Flushes all pending requests and executes xhr callbacks with the trained response as the
@@ -266,8 +266,8 @@ angular.module.NG_MOCK.$Browser = function() {
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$browser#defer.flush
- * @methodOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#defer.flush
+ * @methodOf angular.module.ngMock.$browser
*
* @description
* Flushes all pending requests and executes the defer callbacks.
@@ -289,8 +289,8 @@ angular.module.NG_MOCK.$Browser = function() {
};
/**
* @ngdoc property
- * @name angular.module.NG_MOCK.$browser#defer.now
- * @propertyOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#defer.now
+ * @propertyOf angular.module.ngMock.$browser
*
* @description
* Current milliseconds mock time.
@@ -301,11 +301,11 @@ angular.module.NG_MOCK.$Browser = function() {
return this.$$baseHref;
};
}
-angular.module.NG_MOCK.$Browser.prototype = {
+angular.module.ngMock.$Browser.prototype = {
/**
- * @name angular.module.NG_MOCK.$browser#poll
- * @methodOf angular.module.NG_MOCK.$browser
+ * @name angular.module.ngMock.$browser#poll
+ * @methodOf angular.module.ngMock.$browser
*
* @description
* run all fns in pollFns
@@ -357,30 +357,30 @@ angular.module.NG_MOCK.$Browser.prototype = {
/**
* @ngdoc object
- * @name angular.module.NG_MOCK.$exceptionHandlerProvider
+ * @name angular.module.ngMock.$exceptionHandlerProvider
*
* @description
- * Configures the mock implementation of {@link angular.module.NG.$exceptionHandler} to rethrow or to log errors passed
+ * Configures the mock implementation of {@link angular.module.ng.$exceptionHandler} to rethrow or to log errors passed
* into the `$exceptionHandler`.
*/
/**
* @ngdoc object
- * @name angular.module.NG_MOCK.$exceptionHandler
+ * @name angular.module.ngMock.$exceptionHandler
*
* @description
- * Mock implementation of {@link angular.module.NG.$exceptionHandler} that rethrows or logs errors passed
- * into it. See {@link angular.module.NG_MOCK.$exceptionHandlerProvider $exceptionHandlerProvider} for configuration
+ * Mock implementation of {@link angular.module.ng.$exceptionHandler} that rethrows or logs errors passed
+ * into it. See {@link angular.module.ngMock.$exceptionHandlerProvider $exceptionHandlerProvider} for configuration
* information.
*/
-angular.module.NG_MOCK.$ExceptionHandlerProvider = function(){
+angular.module.ngMock.$ExceptionHandlerProvider = function(){
var handler;
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$exceptionHandlerProvider#mode
- * @methodOf angular.module.NG_MOCK.$exceptionHandlerProvider
+ * @name angular.module.ngMock.$exceptionHandlerProvider#mode
+ * @methodOf angular.module.ngMock.$exceptionHandlerProvider
*
* @description
* Sets the logging mode.
@@ -392,8 +392,8 @@ angular.module.NG_MOCK.$ExceptionHandlerProvider = function(){
* make these tests fail.
* - `log`: Sometimes it is desirable to test that an error is throw, for this case the `log` mode stores the
* error and allows later assertion of it.
- * See {@link angular.module.NG_MOCK.$log#assertEmpty assertEmpty()} and
- * {@link angular.module.NG_MOCK.$log#reset reset()}
+ * See {@link angular.module.ngMock.$log#assertEmpty assertEmpty()} and
+ * {@link angular.module.ngMock.$log#reset reset()}
*/
this.mode = function(mode){
switch(mode) {
@@ -424,15 +424,15 @@ angular.module.NG_MOCK.$ExceptionHandlerProvider = function(){
/**
* @ngdoc service
- * @name angular.module.NG_MOCK.$log
+ * @name angular.module.ngMock.$log
*
* @description
- * Mock implementation of {@link angular.module.NG.$log} that gathers all logged messages in arrays
+ * Mock implementation of {@link angular.module.ng.$log} that gathers all logged messages in arrays
* (one array per logging level). These arrays are exposed as `logs` property of each of the
* level-specific log function, e.g. for level `error` the array is exposed as `$log.error.logs`.
*
*/
-angular.module.NG_MOCK.$LogProvider = function(){
+angular.module.ngMock.$LogProvider = function(){
function concat(array1, array2, index) {
return array1.concat(Array.prototype.slice.call(array2, index));
@@ -449,8 +449,8 @@ angular.module.NG_MOCK.$LogProvider = function(){
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$log#reset
- * @methodOf angular.module.NG_MOCK.$log
+ * @name angular.module.ngMock.$log#reset
+ * @methodOf angular.module.ngMock.$log
*
* @description
* Reset all of the logging arrays to empty.
@@ -458,8 +458,8 @@ angular.module.NG_MOCK.$LogProvider = function(){
$log.reset = function (){
/**
* @ngdoc property
- * @name angular.module.NG_MOCK.$log#log.logs
- * @propertyOf angular.module.NG_MOCK.$log
+ * @name angular.module.ngMock.$log#log.logs
+ * @propertyOf angular.module.ngMock.$log
*
* @description
* Array of logged messages.
@@ -467,8 +467,8 @@ angular.module.NG_MOCK.$LogProvider = function(){
$log.log.logs = [];
/**
* @ngdoc property
- * @name angular.module.NG_MOCK.$log#warn.logs
- * @propertyOf angular.module.NG_MOCK.$log
+ * @name angular.module.ngMock.$log#warn.logs
+ * @propertyOf angular.module.ngMock.$log
*
* @description
* Array of logged messages.
@@ -476,8 +476,8 @@ angular.module.NG_MOCK.$LogProvider = function(){
$log.warn.logs = [];
/**
* @ngdoc property
- * @name angular.module.NG_MOCK.$log#info.logs
- * @propertyOf angular.module.NG_MOCK.$log
+ * @name angular.module.ngMock.$log#info.logs
+ * @propertyOf angular.module.ngMock.$log
*
* @description
* Array of logged messages.
@@ -485,8 +485,8 @@ angular.module.NG_MOCK.$LogProvider = function(){
$log.info.logs = [];
/**
* @ngdoc property
- * @name angular.module.NG_MOCK.$log#error.logs
- * @propertyOf angular.module.NG_MOCK.$log
+ * @name angular.module.ngMock.$log#error.logs
+ * @propertyOf angular.module.ngMock.$log
*
* @description
* Array of logged messages.
@@ -496,8 +496,8 @@ angular.module.NG_MOCK.$LogProvider = function(){
/**
* @ngdoc method
- * @name angular.module.NG_MOCK.$log#assertEmpty
- * @methodOf angular.module.NG_MOCK.$log
+ * @name angular.module.ngMock.$log#assertEmpty
+ * @methodOf angular.module.ngMock.$log
*
* @description
* Assert that the all of the logging methods have no logged messages. If messages present, an exception is thrown.
@@ -527,7 +527,7 @@ angular.module.NG_MOCK.$LogProvider = function(){
/**
* @ngdoc object
- * @name angular.module.NG_MOCK.TzDate
+ * @name angular.module.ngMock.TzDate
* @description
*
* *NOTE*: this is not an injectable instance, just a globally available mock class of `Date`.
@@ -561,7 +561,7 @@ angular.module.NG_MOCK.$LogProvider = function(){
* </pre>
*
*/
-angular.module.NG_MOCK.TzDate = function (offset, timestamp) {
+angular.module.ngMock.TzDate = function (offset, timestamp) {
var self = new Date(0);
if (angular.isString(timestamp)) {
var tsStr = timestamp;
@@ -664,12 +664,12 @@ angular.module.NG_MOCK.TzDate = function (offset, timestamp) {
}
//make "tzDateInstance instanceof Date" return true
-angular.module.NG_MOCK.TzDate.prototype = Date.prototype;
+angular.module.ngMock.TzDate.prototype = Date.prototype;
/**
* @ngdoc function
- * @name angular.module.NG_MOCK.debug
+ * @name angular.module.ngMock.debug
* @description
*
* *NOTE*: this is not an injectable instance, just a globally available function.
@@ -681,7 +681,7 @@ angular.module.NG_MOCK.TzDate.prototype = Date.prototype;
* @param {*} object - any object to turn into string.
* @return a serialized string of the argument
*/
-angular.module.NG_MOCK.dump = function(object){
+angular.module.ngMock.dump = function(object){
var out;
if (angular.isElement(object)) {
object = angular.element(object);
@@ -726,7 +726,7 @@ window.jstestdriver && (function(window){
window.dump = function() {
var args = [];
angular.forEach(arguments, function(arg){
- args.push(angular.module.NG_MOCK.dump(arg));
+ args.push(angular.module.ngMock.dump(arg));
});
jstestdriver.console.log.apply(jstestdriver.console, args);
};
@@ -735,7 +735,7 @@ window.jstestdriver && (function(window){
/**
* @ngdoc function
- * @name angular.module.NG_MOCK.inject
+ * @name angular.module.ngMock.inject
* @description
*
* *NOTE*: this is not an injectable instance, just a globally available function on window.
@@ -783,7 +783,7 @@ window.jasmine && (function(window){
return function(){
var injector = this.$injector;
if (!injector) {
- injector = this.$injector = angular.injector('NG', 'NG_MOCK');
+ injector = this.$injector = angular.injector('ng', 'ngMock');
}
for(var i = 0, ii = blockFns.length; i < ii; i++) {
injector.invoke(this, blockFns[i]);
diff --git a/src/directives.js b/src/directives.js
index d6407dfd..f508d40b 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -106,7 +106,7 @@ angularDirective("ng:init", function(expression){
* * Controller — The `ng:controller` directive specifies a Controller class; the class has
* methods that typically express the business logic behind the application.
*
- * Note that an alternative way to define controllers is via the `{@link angular.module.NG.$route}`
+ * Note that an alternative way to define controllers is via the `{@link angular.module.ng.$route}`
* service.
*
* @element ANY
@@ -138,7 +138,7 @@ angularDirective("ng:init", function(expression){
this.contacts.push({type:'email', value:'yourname@example.org'});
},
removeContact: function(contactToRemove) {
- angular.module.NG.$filter.remove(this.contacts, contactToRemove);
+ angular.module.ng.$filter.remove(this.contacts, contactToRemove);
},
clearContact: function(contact) {
contact.type = 'phone';
diff --git a/src/scenario/Runner.js b/src/scenario/Runner.js
index d71236bd..5839fae0 100644
--- a/src/scenario/Runner.js
+++ b/src/scenario/Runner.js
@@ -163,7 +163,7 @@ angular.scenario.Runner.prototype.createSpecRunner_ = function(scope) {
*/
angular.scenario.Runner.prototype.run = function(application) {
var self = this;
- var $root = angular.injector('NG')('$rootScope');
+ var $root = angular.injector('ng')('$rootScope');
angular.extend($root, this);
angular.forEach(angular.scenario.Runner.prototype, function(fn, name) {
$root[name] = angular.bind(self, fn);
diff --git a/src/scenario/dsl.js b/src/scenario/dsl.js
index c082cdd0..8963f889 100644
--- a/src/scenario/dsl.js
+++ b/src/scenario/dsl.js
@@ -38,10 +38,10 @@ angular.scenario.dsl('sleep', function() {
* browser().window.path() window.location.pathname
* browser().window.search() window.location.search
* browser().window.hash() window.location.hash without # prefix
- * browser().location().url() see angular.module.NG.$location#url
- * browser().location().path() see angular.module.NG.$location#path
- * browser().location().search() see angular.module.NG.$location#search
- * browser().location().hash() see angular.module.NG.$location#hash
+ * browser().location().url() see angular.module.ng.$location#url
+ * browser().location().path() see angular.module.ng.$location#path
+ * browser().location().search() see angular.module.ng.$location#search
+ * browser().location().hash() see angular.module.ng.$location#hash
*/
angular.scenario.dsl('browser', function() {
var chain = {};
@@ -103,25 +103,25 @@ angular.scenario.dsl('browser', function() {
api.url = function() {
return this.addFutureAction('$location.url()', function($window, $document, done) {
- done(null, $window.angular.injector('NG')('$location').url());
+ done(null, $window.angular.injector('ng')('$location').url());
});
};
api.path = function() {
return this.addFutureAction('$location.path()', function($window, $document, done) {
- done(null, $window.angular.injector('NG')('$location').path());
+ done(null, $window.angular.injector('ng')('$location').path());
});
};
api.search = function() {
return this.addFutureAction('$location.search()', function($window, $document, done) {
- done(null, $window.angular.injector('NG')('$location').search());
+ done(null, $window.angular.injector('ng')('$location').search());
});
};
api.hash = function() {
return this.addFutureAction('$location.hash()', function($window, $document, done) {
- done(null, $window.angular.injector('NG')('$location').hash());
+ done(null, $window.angular.injector('ng')('$location').hash());
});
};
diff --git a/src/service/Browser.js b/src/service/Browser.js
index 073bc1e2..2e2c07e8 100644
--- a/src/service/Browser.js
+++ b/src/service/Browser.js
@@ -13,7 +13,7 @@ var XHR = window.XMLHttpRequest || function() {
/**
* @ngdoc object
- * @name angular.module.NG.$browser
+ * @name angular.module.ng.$browser
* @requires $log
* @description
* This object has two goals:
@@ -21,7 +21,7 @@ var XHR = window.XMLHttpRequest || function() {
* - hide all the global state in the browser caused by the window object
* - abstract away all the browser specific features and inconsistencies
*
- * For tests we provide {@link angular.module.NG_MOCK.$browser mock implementation} of the `$browser`
+ * For tests we provide {@link angular.module.ngMock.$browser mock implementation} of the `$browser`
* service, which can be used for convenient testing of the application without the interaction with
* the real browser apis.
*/
@@ -75,8 +75,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
/**
* @ngdoc method
- * @name angular.module.NG.$browser#xhr
- * @methodOf angular.module.NG.$browser
+ * @name angular.module.ng.$browser#xhr
+ * @methodOf angular.module.ng.$browser
*
* @param {string} method Requested method (get|post|put|delete|head|json)
* @param {string} url Requested url
@@ -154,8 +154,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
/**
* @ngdoc method
- * @name angular.module.NG.$browser#addPollFn
- * @methodOf angular.module.NG.$browser
+ * @name angular.module.ng.$browser#addPollFn
+ * @methodOf angular.module.ng.$browser
*
* @param {function()} fn Poll function to add
*
@@ -194,8 +194,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
/**
* @ngdoc method
- * @name angular.module.NG.$browser#url
- * @methodOf angular.module.NG.$browser
+ * @name angular.module.ng.$browser#url
+ * @methodOf angular.module.ng.$browser
*
* @description
* GETTER:
@@ -208,7 +208,7 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
* Returns its own instance to allow chaining
*
* NOTE: this api is intended for use only by the $location service. Please use the
- * {@link angular.module.NG.$location $location service} to change url.
+ * {@link angular.module.ng.$location $location service} to change url.
*
* @param {string} url New url (when used as setter)
* @param {boolean=} replace Should new url replace current history record ?
@@ -245,8 +245,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
/**
* @ngdoc method
- * @name angular.module.NG.$browser#onUrlChange
- * @methodOf angular.module.NG.$browser
+ * @name angular.module.ng.$browser#onUrlChange
+ * @methodOf angular.module.ng.$browser
* @TODO(vojta): refactor to use node's syntax for events
*
* @description
@@ -262,7 +262,7 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
* The listener gets called with new url as parameter.
*
* NOTE: this api is intended for use only by the $location service. Please use the
- * {@link angular.module.NG.$location $location service} to monitor url changes in angular apps.
+ * {@link angular.module.ng.$location $location service} to monitor url changes in angular apps.
*
* @param {function(string)} listener Listener function to be called when url changes.
* @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
@@ -295,8 +295,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
/**
* @ngdoc method
- * @name angular.module.NG.$browser#cookies
- * @methodOf angular.module.NG.$browser
+ * @name angular.module.ng.$browser#cookies
+ * @methodOf angular.module.ng.$browser
*
* @param {string=} name Cookie name
* @param {string=} value Cokkie value
@@ -356,8 +356,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
/**
* @ngdoc method
- * @name angular.module.NG.$browser#defer
- * @methodOf angular.module.NG.$browser
+ * @name angular.module.ng.$browser#defer
+ * @methodOf angular.module.ng.$browser
* @param {function()} fn A function, who's execution should be defered.
* @param {number=} [delay=0] of milliseconds to defer the function execution.
* @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
@@ -385,8 +385,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
/**
* THIS DOC IS NOT VISIBLE because ngdocs can't process docs for foo#method.method
*
- * @name angular.module.NG.$browser#defer.cancel
- * @methodOf angular.module.NG.$browser.defer
+ * @name angular.module.ng.$browser#defer.cancel
+ * @methodOf angular.module.ng.$browser.defer
*
* @description
* Cancels a defered task identified with `deferId`.
@@ -411,8 +411,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
/**
* @ngdoc method
- * @name angular.module.NG.$browser#addCss
- * @methodOf angular.module.NG.$browser
+ * @name angular.module.ng.$browser#addCss
+ * @methodOf angular.module.ng.$browser
*
* @param {string} url Url to css file
* @description
@@ -429,8 +429,8 @@ function Browser(window, document, body, XHR, $log, $sniffer) {
/**
* @ngdoc method
- * @name angular.module.NG.$browser#addJs
- * @methodOf angular.module.NG.$browser
+ * @name angular.module.ng.$browser#addJs
+ * @methodOf angular.module.ng.$browser
*
* @param {string} url Url to js file
*
diff --git a/src/service/compiler.js b/src/service/compiler.js
index 56ec82e2..781d7b3a 100644
--- a/src/service/compiler.js
+++ b/src/service/compiler.js
@@ -79,12 +79,12 @@ function $CompileProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$compile
+ * @name angular.module.ng.$compile
* @function
*
* @description
* Compiles a piece of HTML string or DOM into a template and produces a template function, which
- * can then be used to link {@link angular.module.NG.$rootScope.Scope scope} and the template together.
+ * can then be used to link {@link angular.module.ng.$rootScope.Scope scope} and the template together.
*
* The compilation is a process of walking the DOM tree and trying to match DOM elements to
* {@link angular.markup markup}, {@link angular.attrMarkup attrMarkup},
@@ -117,7 +117,7 @@ function $CompileProvider(){
* @returns {function(scope[, cloneAttachFn])} a template function which is used to bind template
* (a DOM element/tree) to a scope. Where:
*
- * * `scope` - A {@link angular.module.NG.$rootScope.Scope Scope} to bind to.
+ * * `scope` - A {@link angular.module.ng.$rootScope.Scope Scope} to bind to.
* * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the
* `template` and call the `cloneAttachFn` function allowing the caller to attach the
* cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is
@@ -136,14 +136,14 @@ function $CompileProvider(){
* bring the view to life, the scope needs to run through a $digest phase which typically is done by
* Angular automatically, except for the case when an application is being
* {@link guide/dev_guide.bootstrap.manual_bootstrap} manually bootstrapped, in which case the
- * $digest phase must be invoked by calling {@link angular.module.NG.$rootScope.Scope#$apply}.
+ * $digest phase must be invoked by calling {@link angular.module.ng.$rootScope.Scope#$apply}.
*
* If you need access to the bound view, there are two ways to do it:
*
* - If you are not asking the linking function to clone the template, create the DOM element(s)
* before you send them to the compiler and keep this reference around.
* <pre>
- * var scope = angular.injector('NG')(function($rootScope, $compile){
+ * var scope = angular.injector('ng')(function($rootScope, $compile){
* var element = $compile('<p>{{total}}</p>')($rootScope);
* });
* </pre>
diff --git a/src/service/cookieStore.js b/src/service/cookieStore.js
index 2bd00585..e6b7cd21 100644
--- a/src/service/cookieStore.js
+++ b/src/service/cookieStore.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$cookieStore
+ * @name angular.module.ng.$cookieStore
* @requires $cookies
*
* @description
@@ -17,8 +17,8 @@ function $CookieStoreProvider(){
return {
/**
* @ngdoc method
- * @name angular.module.NG.$cookieStore#get
- * @methodOf angular.module.NG.$cookieStore
+ * @name angular.module.ng.$cookieStore#get
+ * @methodOf angular.module.ng.$cookieStore
*
* @description
* Returns the value of given cookie key
@@ -32,8 +32,8 @@ function $CookieStoreProvider(){
/**
* @ngdoc method
- * @name angular.module.NG.$cookieStore#put
- * @methodOf angular.module.NG.$cookieStore
+ * @name angular.module.ng.$cookieStore#put
+ * @methodOf angular.module.ng.$cookieStore
*
* @description
* Sets a value for given cookie key
@@ -47,8 +47,8 @@ function $CookieStoreProvider(){
/**
* @ngdoc method
- * @name angular.module.NG.$cookieStore#remove
- * @methodOf angular.module.NG.$cookieStore
+ * @name angular.module.ng.$cookieStore#remove
+ * @methodOf angular.module.ng.$cookieStore
*
* @description
* Remove given cookie
diff --git a/src/service/cookies.js b/src/service/cookies.js
index ca996b6e..cd953eb1 100644
--- a/src/service/cookies.js
+++ b/src/service/cookies.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$cookies
+ * @name angular.module.ng.$cookies
* @requires $browser
*
* @description
diff --git a/src/service/defer.js b/src/service/defer.js
index 58dc5b09..f2a893bc 100644
--- a/src/service/defer.js
+++ b/src/service/defer.js
@@ -2,13 +2,13 @@
/**
* @ngdoc function
- * @name angular.module.NG.$defer
+ * @name angular.module.ng.$defer
* @requires $browser
*
* @description
- * Delegates to {@link angular.module.NG.$browser#defer $browser.defer}, but wraps the `fn` function
+ * Delegates to {@link angular.module.ng.$browser#defer $browser.defer}, but wraps the `fn` function
* into a try/catch block and delegates any exceptions to
- * {@link angular.module.NG.$exceptionHandler $exceptionHandler} service.
+ * {@link angular.module.ng.$exceptionHandler $exceptionHandler} service.
*
* In tests you can use `$browser.defer.flush()` to flush the queue of deferred functions.
*
@@ -19,8 +19,8 @@
/**
* @ngdoc function
- * @name angular.module.NG.$defer#cancel
- * @methodOf angular.module.NG.$defer
+ * @name angular.module.ng.$defer#cancel
+ * @methodOf angular.module.ng.$defer
*
* @description
* Cancels a defered task identified with `deferId`.
diff --git a/src/service/document.js b/src/service/document.js
index 4db1fe12..53b59b39 100644
--- a/src/service/document.js
+++ b/src/service/document.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$document
+ * @name angular.module.ng.$document
* @requires $window
*
* @description
diff --git a/src/service/exceptionHandler.js b/src/service/exceptionHandler.js
index f771e294..6d680b04 100644
--- a/src/service/exceptionHandler.js
+++ b/src/service/exceptionHandler.js
@@ -2,7 +2,7 @@
/**
* @ngdoc function
- * @name angular.module.NG.$exceptionHandler
+ * @name angular.module.ng.$exceptionHandler
* @requires $log
*
* @description
@@ -11,7 +11,7 @@
* the browser console.
*
* In unit tests, if `angular-mocks.js` is loaded, this service is overriden by
- * {@link angular.module.NG_MOCK.$exceptionHandler mock $exceptionHandler}
+ * {@link angular.module.ngMock.$exceptionHandler mock $exceptionHandler}
*/
function $ExceptionHandlerProvider(){
this.$get = ['$log', function($log){
diff --git a/src/service/filter.js b/src/service/filter.js
index 3164b2d4..4c43be00 100644
--- a/src/service/filter.js
+++ b/src/service/filter.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$filterProvider
+ * @name angular.module.ng.$filterProvider
* @description
*
* Filters are just functions which transform input to an output. However filters need to be Dependency Injected. To
@@ -50,8 +50,8 @@
*/
/**
* @ngdoc method
- * @name angular.module.NG.$filterProvider#register
- * @methodOf angular.module.NG.$filterProvider
+ * @name angular.module.ng.$filterProvider#register
+ * @methodOf angular.module.ng.$filterProvider
* @description
* Register filter factory function.
*
@@ -62,7 +62,7 @@
/**
* @ngdoc function
- * @name angular.module.NG.$filter
+ * @name angular.module.ng.$filter
* @function
* @description
* Filters are used for formatting data displayed to the user.
diff --git a/src/service/filter/filter.js b/src/service/filter/filter.js
index 7008c312..61cfc80f 100644
--- a/src/service/filter/filter.js
+++ b/src/service/filter/filter.js
@@ -2,14 +2,14 @@
/**
* @ngdoc filter
- * @name angular.module.NG.$filter.filter
+ * @name angular.module.ng.$filter.filter
* @function
*
* @description
* Selects a subset of items from `array` and returns it as a new array.
*
* Note: This function is used to augment the `Array` type in Angular expressions. See
- * {@link angular.module.NG.$filter} for more information about Angular arrays.
+ * {@link angular.module.ng.$filter} for more information about Angular arrays.
*
* @param {Array} array The source array.
* @param {string|Object|function()} expression The predicate to be used for selecting items from
diff --git a/src/service/filter/filters.js b/src/service/filter/filters.js
index 95844da3..3e7f8e37 100644
--- a/src/service/filter/filters.js
+++ b/src/service/filter/filters.js
@@ -2,7 +2,7 @@
/**
* @ngdoc filter
- * @name angular.module.NG.$filter.currency
+ * @name angular.module.ng.$filter.currency
* @function
*
* @description
@@ -53,7 +53,7 @@ function currencyFilter($locale) {
/**
* @ngdoc filter
- * @name angular.module.NG.$filter.number
+ * @name angular.module.ng.$filter.number
* @function
*
* @description
@@ -239,7 +239,7 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+
/**
* @ngdoc filter
- * @name angular.module.NG.$filter.date
+ * @name angular.module.ng.$filter.date
* @function
*
* @description
@@ -364,7 +364,7 @@ function dateFilter($locale) {
/**
* @ngdoc filter
- * @name angular.module.NG.$filter.json
+ * @name angular.module.ng.$filter.json
* @function
*
* @description
@@ -400,7 +400,7 @@ function jsonFilter() {
/**
* @ngdoc filter
- * @name angular.module.NG.$filter.lowercase
+ * @name angular.module.ng.$filter.lowercase
* @function
* @description
* Converts string to lowercase.
@@ -411,7 +411,7 @@ var lowercaseFilter = valueFn(lowercase);
/**
* @ngdoc filter
- * @name angular.module.NG.$filter.uppercase
+ * @name angular.module.ng.$filter.uppercase
* @function
* @description
* Converts string to uppercase.
@@ -422,7 +422,7 @@ var uppercaseFilter = valueFn(uppercase);
/**
* @ngdoc filter
- * @name angular.module.NG.$filter.html
+ * @name angular.module.ng.$filter.html
* @function
*
* @description
@@ -524,7 +524,7 @@ function htmlFilter() {
/**
* @ngdoc filter
- * @name angular.module.NG.$filter.linky
+ * @name angular.module.ng.$filter.linky
* @function
*
* @description
diff --git a/src/service/filter/limitTo.js b/src/service/filter/limitTo.js
index cc9646c2..a250bd3b 100644
--- a/src/service/filter/limitTo.js
+++ b/src/service/filter/limitTo.js
@@ -2,7 +2,7 @@
/**
* @ngdoc function
- * @name angular.module.NG.$filter.limitTo
+ * @name angular.module.ng.$filter.limitTo
* @function
*
* @description
@@ -11,7 +11,7 @@
* value and sign (positive or negative) of `limit`.
*
* Note: This function is used to augment the `Array` type in Angular expressions. See
- * {@link angular.module.NG.$filter} for more information about Angular arrays.
+ * {@link angular.module.ng.$filter} for more information about Angular arrays.
*
* @param {Array} array Source array to be limited.
* @param {string|Number} limit The length of the returned array. If the `limit` number is
diff --git a/src/service/filter/orderBy.js b/src/service/filter/orderBy.js
index c9e6ae9f..2e5a0286 100644
--- a/src/service/filter/orderBy.js
+++ b/src/service/filter/orderBy.js
@@ -2,14 +2,14 @@
/**
* @ngdoc function
- * @name angular.module.NG.$filter.orderBy
+ * @name angular.module.ng.$filter.orderBy
* @function
*
* @description
* Orders a specified `array` by the `expression` predicate.
*
* Note: this function is used to augment the `Array` type in Angular expressions. See
- * {@link angular.module.NG.$filter} for more informaton about Angular arrays.
+ * {@link angular.module.ng.$filter} for more informaton about Angular arrays.
*
* @param {Array} array The array to sort.
* @param {function(*)|string|Array.<(function(*)|string)>} expression A predicate to be
diff --git a/src/service/formFactory.js b/src/service/formFactory.js
index f0e4b5ac..eb33eb4a 100644
--- a/src/service/formFactory.js
+++ b/src/service/formFactory.js
@@ -2,20 +2,20 @@
/**
* @ngdoc object
- * @name angular.module.NG.$formFactory
+ * @name angular.module.ng.$formFactory
*
* @description
- * Use `$formFactory` to create a new instance of a {@link angular.module.NG.$formFactory.Form Form}
+ * Use `$formFactory` to create a new instance of a {@link angular.module.ng.$formFactory.Form Form}
* controller or to find the nearest form instance for a given DOM element.
*
* The form instance is a collection of widgets, and is responsible for life cycle and validation
* of widget.
*
- * Keep in mind that both form and widget instances are {@link api/angular.module.NG.$rootScope.Scope scopes}.
+ * Keep in mind that both form and widget instances are {@link api/angular.module.ng.$rootScope.Scope scopes}.
*
* @param {Form=} parentForm The form which should be the parent form of the new form controller.
* If none specified default to the `rootForm`.
- * @returns {Form} A new {@link angular.module.NG.$formFactory.Form Form} instance.
+ * @returns {Form} A new {@link angular.module.ng.$formFactory.Form Form} instance.
*
* @example
*
@@ -97,7 +97,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$formFactory.Form
+ * @name angular.module.ng.$formFactory.Form
* @description
* The `Form` is a controller which keeps track of the validity of the widgets contained within it.
*/
@@ -109,7 +109,7 @@ function $FormFactoryProvider() {
/**
* @ngdoc proprety
* @name rootForm
- * @propertyOf angular.module.NG.$formFactory
+ * @propertyOf angular.module.ng.$formFactory
* @description
* Static property on `$formFactory`
*
@@ -122,7 +122,7 @@ function $FormFactoryProvider() {
/**
* @ngdoc method
* @name forElement
- * @methodOf angular.module.NG.$formFactory
+ * @methodOf angular.module.ng.$formFactory
* @description
* Static method on `$formFactory` service.
*
@@ -149,7 +149,7 @@ function $FormFactoryProvider() {
/**
* @ngdoc property
* @name $error
- * @propertyOf angular.module.NG.$formFactory.Form
+ * @propertyOf angular.module.ng.$formFactory.Form
* @description
* Property of the form and widget instance.
*
@@ -161,7 +161,7 @@ function $FormFactoryProvider() {
/**
* @ngdoc property
* @name $invalid
- * @propertyOf angular.module.NG.$formFactory.Form
+ * @propertyOf angular.module.ng.$formFactory.Form
* @description
* Property of the form and widget instance.
*
@@ -171,7 +171,7 @@ function $FormFactoryProvider() {
/**
* @ngdoc property
* @name $valid
- * @propertyOf angular.module.NG.$formFactory.Form
+ * @propertyOf angular.module.ng.$formFactory.Form
* @description
* Property of the form and widget instance.
*
@@ -180,8 +180,8 @@ function $FormFactoryProvider() {
/**
* @ngdoc event
- * @name angular.module.NG.$formFactory.Form#$valid
- * @eventOf angular.module.NG.$formFactory.Form
+ * @name angular.module.ng.$formFactory.Form#$valid
+ * @eventOf angular.module.ng.$formFactory.Form
* @eventType listen on form
* @description
* Upon receiving the `$valid` event from the widget update the `$error`, `$valid` and `$invalid`
@@ -194,8 +194,8 @@ function $FormFactoryProvider() {
/**
* @ngdoc event
- * @name angular.module.NG.$formFactory.Form#$invalid
- * @eventOf angular.module.NG.$formFactory.Form
+ * @name angular.module.ng.$formFactory.Form#$invalid
+ * @eventOf angular.module.ng.$formFactory.Form
* @eventType listen on form
* @description
* Upon receiving the `$invalid` event from the widget update the `$error`, `$valid` and `$invalid`
@@ -208,8 +208,8 @@ function $FormFactoryProvider() {
/**
* @ngdoc event
- * @name angular.module.NG.$formFactory.Form#$validate
- * @eventOf angular.module.NG.$formFactory.Form
+ * @name angular.module.ng.$formFactory.Form#$validate
+ * @eventOf angular.module.ng.$formFactory.Form
* @eventType emit on widget
* @description
* Emit the `$validate` event on the widget, giving a widget a chance to emit a
@@ -219,8 +219,8 @@ function $FormFactoryProvider() {
/**
* @ngdoc event
- * @name angular.module.NG.$formFactory.Form#$viewChange
- * @eventOf angular.module.NG.$formFactory.Form
+ * @name angular.module.ng.$formFactory.Form#$viewChange
+ * @eventOf angular.module.ng.$formFactory.Form
* @eventType listen on widget
* @description
* A widget is responsible for emitting this event whenever the view changes do to user interaction.
@@ -293,7 +293,7 @@ function $FormFactoryProvider() {
/**
* @ngdoc method
* @name $createWidget
- * @methodOf angular.module.NG.$formFactory.Form
+ * @methodOf angular.module.ng.$formFactory.Form
* @description
*
* Use form's `$createWidget` instance method to create new widgets. The widgets can be created
diff --git a/src/service/locale.js b/src/service/locale.js
index 19085295..4c9a989d 100644
--- a/src/service/locale.js
+++ b/src/service/locale.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$locale
+ * @name angular.module.ng.$locale
*
* @description
* $locale service provides localization rules for various Angular components. As of right now the
diff --git a/src/service/location.js b/src/service/location.js
index 532ee3af..a29a1a15 100644
--- a/src/service/location.js
+++ b/src/service/location.js
@@ -205,8 +205,8 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
/**
* @ngdoc method
- * @name angular.module.NG.$location#absUrl
- * @methodOf angular.module.NG.$location
+ * @name angular.module.ng.$location#absUrl
+ * @methodOf angular.module.ng.$location
*
* @description
* This method is getter only.
@@ -220,8 +220,8 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
/**
* @ngdoc method
- * @name angular.module.NG.$location#url
- * @methodOf angular.module.NG.$location
+ * @name angular.module.ng.$location#url
+ * @methodOf angular.module.ng.$location
*
* @description
* This method is getter / setter.
@@ -247,8 +247,8 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
/**
* @ngdoc method
- * @name angular.module.NG.$location#protocol
- * @methodOf angular.module.NG.$location
+ * @name angular.module.ng.$location#protocol
+ * @methodOf angular.module.ng.$location
*
* @description
* This method is getter only.
@@ -261,8 +261,8 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
/**
* @ngdoc method
- * @name angular.module.NG.$location#host
- * @methodOf angular.module.NG.$location
+ * @name angular.module.ng.$location#host
+ * @methodOf angular.module.ng.$location
*
* @description
* This method is getter only.
@@ -275,8 +275,8 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
/**
* @ngdoc method
- * @name angular.module.NG.$location#port
- * @methodOf angular.module.NG.$location
+ * @name angular.module.ng.$location#port
+ * @methodOf angular.module.ng.$location
*
* @description
* This method is getter only.
@@ -289,8 +289,8 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
/**
* @ngdoc method
- * @name angular.module.NG.$location#path
- * @methodOf angular.module.NG.$location
+ * @name angular.module.ng.$location#path
+ * @methodOf angular.module.ng.$location
*
* @description
* This method is getter / setter.
@@ -311,8 +311,8 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
/**
* @ngdoc method
- * @name angular.module.NG.$location#search
- * @methodOf angular.module.NG.$location
+ * @name angular.module.ng.$location#search
+ * @methodOf angular.module.ng.$location
*
* @description
* This method is getter / setter.
@@ -344,8 +344,8 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
/**
* @ngdoc method
- * @name angular.module.NG.$location#hash
- * @methodOf angular.module.NG.$location
+ * @name angular.module.ng.$location#hash
+ * @methodOf angular.module.ng.$location
*
* @description
* This method is getter / setter.
@@ -361,8 +361,8 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
/**
* @ngdoc method
- * @name angular.module.NG.$location#replace
- * @methodOf angular.module.NG.$location
+ * @name angular.module.ng.$location#replace
+ * @methodOf angular.module.ng.$location
*
* @description
* If called, all changes to $location during current `$digest` will be replacing current history
@@ -397,7 +397,7 @@ function locationGetterSetter(property, preprocess) {
/**
* @ngdoc object
- * @name angular.module.NG.$location
+ * @name angular.module.ng.$location
*
* @requires $browser
* @requires $sniffer
@@ -422,9 +422,9 @@ function locationGetterSetter(property, preprocess) {
/**
* @ngdoc object
- * @name angular.module.NG.$locationProvider
+ * @name angular.module.ng.$locationProvider
* @description
- * Use the `$locationPrvoder` to configure how the application deep linking paths are stored.
+ * Use the `$locationProvider` to configure how the application deep linking paths are stored.
*/
function $LocationProvider(){
var hashPrefix = '',
@@ -432,11 +432,11 @@ function $LocationProvider(){
/**
* @ngdoc property
- * @name angular.module.NG.$locationProvider#hashPrefix
- * @methodOf angular.module.NG.$locationProvider
+ * @name angular.module.ng.$locationProvider#hashPrefix
+ * @methodOf angular.module.ng.$locationProvider
* @description
* @param {string=} prefix Prefix for hash part (containing path and search)
- * @returns current value if used as getter or itself (chaining) if used as setter
+ * @returns {*} current value if used as getter or itself (chaining) if used as setter
*/
this.hashPrefix = function(prefix) {
if (isDefined(prefix)) {
@@ -449,11 +449,11 @@ function $LocationProvider(){
/**
* @ngdoc property
- * @name angular.module.NG.$locationProvider#hashPrefix
- * @propertyOf angular.module.NG.$locationProvider
+ * @name angular.module.ng.$locationProvider#hashPrefix
+ * @methodOf angular.module.ng.$locationProvider
* @description
- * @param mode= Use HTML5 strategy if available.
- * @returns current value if used as getter or itself (chaining) if used as setter
+ * @param {string=} mode Use HTML5 strategy if available.
+ * @returns {*} current value if used as getter or itself (chaining) if used as setter
*/
this.html5Mode = function(mode) {
if (isDefined(mode)) {
diff --git a/src/service/log.js b/src/service/log.js
index 14ae2a57..d6566140 100644
--- a/src/service/log.js
+++ b/src/service/log.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$log
+ * @name angular.module.ng.$log
* @requires $window
*
* @description
@@ -40,8 +40,8 @@ function $LogProvider(){
return {
/**
* @ngdoc method
- * @name angular.module.NG.$log#log
- * @methodOf angular.module.NG.$log
+ * @name angular.module.ng.$log#log
+ * @methodOf angular.module.ng.$log
*
* @description
* Write a log message
@@ -50,8 +50,8 @@ function $LogProvider(){
/**
* @ngdoc method
- * @name angular.module.NG.$log#warn
- * @methodOf angular.module.NG.$log
+ * @name angular.module.ng.$log#warn
+ * @methodOf angular.module.ng.$log
*
* @description
* Write a warning message
@@ -60,8 +60,8 @@ function $LogProvider(){
/**
* @ngdoc method
- * @name angular.module.NG.$log#info
- * @methodOf angular.module.NG.$log
+ * @name angular.module.ng.$log#info
+ * @methodOf angular.module.ng.$log
*
* @description
* Write an information message
@@ -70,8 +70,8 @@ function $LogProvider(){
/**
* @ngdoc method
- * @name angular.module.NG.$log#error
- * @methodOf angular.module.NG.$log
+ * @name angular.module.ng.$log#error
+ * @methodOf angular.module.ng.$log
*
* @description
* Write an error message
diff --git a/src/service/resource.js b/src/service/resource.js
index bdd0058d..969e4be1 100644
--- a/src/service/resource.js
+++ b/src/service/resource.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$resource
+ * @name angular.module.ng.$resource
* @requires $xhr.cache
*
* @description
@@ -10,7 +10,7 @@
* [RESTful](http://en.wikipedia.org/wiki/Representational_State_Transfer) server-side data sources.
*
* The returned resource object has action methods which provide high-level behaviors without
- * the need to interact with the low level {@link angular.module.NG.$xhr $xhr} service or
+ * the need to interact with the low level {@link angular.module.ng.$xhr $xhr} service or
* raw XMLHttpRequest.
*
* @param {string} url A parameterized URL template with parameters prefixed by `:` as in
@@ -57,7 +57,7 @@
* 'remove': {method:'DELETE'},
* 'delete': {method:'DELETE'} };
*
- * Calling these methods invoke an {@link angular.module.NG.$xhr} with the specified http method,
+ * Calling these methods invoke an {@link angular.module.ng.$xhr} with the specified http method,
* destination and parameters. When the data is returned from the server then the object is an
* instance of the resource class `save`, `remove` and `delete` actions are available on it as
* methods with the `$` prefix. This allows you to easily perform CRUD operations (create, read,
diff --git a/src/service/route.js b/src/service/route.js
index 61f43c29..97c9cee0 100644
--- a/src/service/route.js
+++ b/src/service/route.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$route
+ * @name angular.module.ng.$route
* @requires $location
* @requires $routeParams
*
@@ -14,7 +14,7 @@
* definition. It is used for deep-linking URLs to controllers and views (HTML partials).
*
* The `$route` service is typically used in conjunction with {@link angular.widget.ng:view ng:view}
- * widget and the {@link angular.module.NG.$routeParams $routeParams} service.
+ * widget and the {@link angular.module.ng.$routeParams $routeParams} service.
*
* @example
This example shows how changing the URL hash causes the <tt>$route</tt>
@@ -67,8 +67,8 @@ function $RouteProvider(){
function( $rootScope, $location, $routeParams) {
/**
* @ngdoc event
- * @name angular.module.NG.$route#$beforeRouteChange
- * @eventOf angular.module.NG.$route
+ * @name angular.module.ng.$route#$beforeRouteChange
+ * @eventOf angular.module.ng.$route
* @eventType broadcast on root scope
* @description
* Broadcasted before a route change.
@@ -79,14 +79,14 @@ function $RouteProvider(){
* The `Route` object extends the route definition with the following properties.
*
* * `scope` - The instance of the route controller.
- * * `params` - The current {@link angular.module.NG.$routeParams params}.
+ * * `params` - The current {@link angular.module.ng.$routeParams params}.
*
*/
/**
* @ngdoc event
- * @name angular.module.NG.$route#$afterRouteChange
- * @eventOf angular.module.NG.$route
+ * @name angular.module.ng.$route#$afterRouteChange
+ * @eventOf angular.module.ng.$route
* @eventType broadcast on root scope
* @description
* Broadcasted after a route change.
@@ -97,14 +97,14 @@ function $RouteProvider(){
* The `Route` object extends the route definition with the following properties.
*
* * `scope` - The instance of the route controller.
- * * `params` - The current {@link angular.module.NG.$routeParams params}.
+ * * `params` - The current {@link angular.module.ng.$routeParams params}.
*
*/
/**
* @ngdoc event
- * @name angular.module.NG.$route#$routeUpdate
- * @eventOf angular.module.NG.$route
+ * @name angular.module.ng.$route#$routeUpdate
+ * @eventOf angular.module.ng.$route
* @eventType emit on the current route scope
* @description
*
@@ -122,8 +122,8 @@ function $RouteProvider(){
/**
* @ngdoc method
- * @name angular.module.NG.$route#parent
- * @methodOf angular.module.NG.$route
+ * @name angular.module.ng.$route#parent
+ * @methodOf angular.module.ng.$route
*
* @param {Scope} [scope=rootScope] Scope to be used as parent for newly created
* `$route.current.scope` scopes.
@@ -138,8 +138,8 @@ function $RouteProvider(){
/**
* @ngdoc method
- * @name angular.module.NG.$route#when
- * @methodOf angular.module.NG.$route
+ * @name angular.module.ng.$route#when
+ * @methodOf angular.module.ng.$route
*
* @param {string} path Route path (matched against `$location.hash`)
* @param {Object} route Mapping information to be assigned to `$route.current` on route
@@ -153,7 +153,7 @@ function $RouteProvider(){
* {@link angular.widget.ng:view ng:view} or
* {@link angular.widget.ng:include ng:include} widgets.
* - `redirectTo` – {(string|function())=} – value to update
- * {@link angular.module.NG.$location $location} path with and trigger route redirection.
+ * {@link angular.module.ng.$location $location} path with and trigger route redirection.
*
* If `redirectTo` is a function, it will be called with the following parameters:
*
@@ -170,7 +170,7 @@ function $RouteProvider(){
*
* If the option is set to false and url in the browser changes, then
* $routeUpdate event is emited on the current route scope. You can use this event to
- * react to {@link angular.module.NG.$routeParams} changes:
+ * react to {@link angular.module.ng.$routeParams} changes:
*
* function MyCtrl($route, $routeParams) {
* this.$on('$routeUpdate', function() {
@@ -193,8 +193,8 @@ function $RouteProvider(){
/**
* @ngdoc method
- * @name angular.module.NG.$route#otherwise
- * @methodOf angular.module.NG.$route
+ * @name angular.module.ng.$route#otherwise
+ * @methodOf angular.module.ng.$route
*
* @description
* Sets route definition that will be used on route change when no other route definition
@@ -208,12 +208,12 @@ function $RouteProvider(){
/**
* @ngdoc method
- * @name angular.module.NG.$route#reload
- * @methodOf angular.module.NG.$route
+ * @name angular.module.ng.$route#reload
+ * @methodOf angular.module.ng.$route
*
* @description
* Causes `$route` service to reload (and recreate the `$route.current` scope) upon the next
- * eval even if {@link angular.module.NG.$location $location} hasn't changed.
+ * eval even if {@link angular.module.ng.$location $location} hasn't changed.
*/
reload: function() {
dirty++;
diff --git a/src/service/routeParams.js b/src/service/routeParams.js
index bb59bb28..949bc22d 100644
--- a/src/service/routeParams.js
+++ b/src/service/routeParams.js
@@ -2,13 +2,13 @@
/**
* @ngdoc object
- * @name angular.module.NG.$routeParams
+ * @name angular.module.ng.$routeParams
* @requires $route
*
* @description
* Current set of route parameters. The route parameters are a combination of the
- * {@link angular.module.NG.$location $location} `search()`, and `path()`. The `path` parameters
- * are extracted when the {@link angular.module.NG.$route $route} path is matched.
+ * {@link angular.module.ng.$location $location} `search()`, and `path()`. The `path` parameters
+ * are extracted when the {@link angular.module.ng.$route $route} path is matched.
*
* In case of parameter name collision, `path` params take precedence over `search` params.
*
diff --git a/src/service/scope.js b/src/service/scope.js
index afc152f7..df969cfc 100644
--- a/src/service/scope.js
+++ b/src/service/scope.js
@@ -27,10 +27,10 @@
/**
* @ngdoc object
- * @name angular.module.NG.$rootScope
+ * @name angular.module.ng.$rootScope
* @description
*
- * Every application has a single root {@link angular.module.NG.$rootScope.Scope scope}.
+ * Every application has a single root {@link angular.module.ng.$rootScope.Scope scope}.
* All other scopes are child scopes of the root scope. Scopes provide mechanism for watching the model and provide
* event processing life-cycle. See {@link guide/dev_guide.scopes developer guide on scopes}.
*/
@@ -39,12 +39,12 @@ function $RootScopeProvider(){
function( $injector, $exceptionHandler, $parse){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope
*
* @description
- * A root scope can be retrieved using the {@link angular.module.NG.$rootScope $rootScope} key from the
+ * A root scope can be retrieved using the {@link angular.module.ng.$rootScope $rootScope} key from the
* {@link angular.module.AUTO.$injector $injector}. Child scopes are created using the
- * {@link angular.module.NG.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when
+ * {@link angular.module.ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when
* compiled HTML template is executed.)
*
* Here is a simple scope snippet to show how you can interact with the scope.
@@ -90,7 +90,7 @@ function $RootScopeProvider(){
*
*
* @param {Object.<string, function()>=} providers Map of service factory which need to be provided
- * for the current scope. Defaults to {@link angular.module.NG}.
+ * for the current scope. Defaults to {@link angular.module.ng}.
* @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should
* append/override services provided by `providers`. This is handy when unit-testing and having
* the need to override a default service.
@@ -110,8 +110,8 @@ function $RootScopeProvider(){
/**
* @ngdoc property
- * @name angular.module.NG.$rootScope.Scope#$id
- * @propertyOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$id
+ * @propertyOf angular.module.ng.$rootScope.Scope
* @returns {number} Unique scope ID (monotonically increasing alphanumeric sequence) useful for
* debugging.
*/
@@ -120,17 +120,17 @@ function $RootScopeProvider(){
Scope.prototype = {
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$new
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$new
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
- * Creates a new child {@link angular.module.NG.$rootScope.Scope scope}. The new scope can optionally behave as a
- * controller. The parent scope will propagate the {@link angular.module.NG.$rootScope.Scope#$digest $digest()} and
- * {@link angular.module.NG.$rootScope.Scope#$digest $digest()} events. The scope can be removed from the scope
- * hierarchy using {@link angular.module.NG.$rootScope.Scope#$destroy $destroy()}.
+ * Creates a new child {@link angular.module.ng.$rootScope.Scope scope}. The new scope can optionally behave as a
+ * controller. The parent scope will propagate the {@link angular.module.ng.$rootScope.Scope#$digest $digest()} and
+ * {@link angular.module.ng.$rootScope.Scope#$digest $digest()} events. The scope can be removed from the scope
+ * hierarchy using {@link angular.module.ng.$rootScope.Scope#$destroy $destroy()}.
*
- * {@link angular.module.NG.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is desired for
+ * {@link angular.module.ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is desired for
* the scope and its child scopes to be permanently detached from the parent and thus stop
* participating in model change detection and listener notification by invoking.
*
@@ -175,17 +175,17 @@ function $RootScopeProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$watch
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$watch
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
* Registers a `listener` callback to be executed whenever the `watchExpression` changes.
*
- * - The `watchExpression` is called on every call to {@link angular.module.NG.$rootScope.Scope#$digest $digest()} and
- * should return the value which will be watched. (Since {@link angular.module.NG.$rootScope.Scope#$digest $digest()}
+ * - The `watchExpression` is called on every call to {@link angular.module.ng.$rootScope.Scope#$digest $digest()} and
+ * should return the value which will be watched. (Since {@link angular.module.ng.$rootScope.Scope#$digest $digest()}
* reruns when it detects changes the `watchExpression` can execute multiple times per
- * {@link angular.module.NG.$rootScope.Scope#$digest $digest()} and should be idempotent.)
+ * {@link angular.module.ng.$rootScope.Scope#$digest $digest()} and should be idempotent.)
* - The `listener` is called only when the value from the current `watchExpression` and the
* previous call to `watchExpression' are not equal. The inequality is determined according to
* {@link angular.equals} function. To save the value of the object for later comparison
@@ -196,15 +196,15 @@ function $RootScopeProvider(){
* limit is 100 to prevent infinity loop deadlock.
*
*
- * If you want to be notified whenever {@link angular.module.NG.$rootScope.Scope#$digest $digest} is called,
+ * If you want to be notified whenever {@link angular.module.ng.$rootScope.Scope#$digest $digest} is called,
* you can register an `watchExpression` function with no `listener`. (Since `watchExpression`,
- * can execute multiple times per {@link angular.module.NG.$rootScope.Scope#$digest $digest} cycle when a change is
+ * can execute multiple times per {@link angular.module.ng.$rootScope.Scope#$digest $digest} cycle when a change is
* detected, be prepared for multiple calls to your listener.)
*
*
* # Example
<pre>
- var scope = angular.module.NG.$rootScope.Scope();
+ var scope = angular.module.ng.$rootScope.Scope();
scope.name = 'misko';
scope.counter = 0;
@@ -224,7 +224,7 @@ function $RootScopeProvider(){
*
*
* @param {(function()|string)} watchExpression Expression that is evaluated on each
- * {@link angular.module.NG.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers a
+ * {@link angular.module.ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers a
* call to the `listener`.
*
* - `string`: Evaluated as {@link guide/dev_guide.expressions expression}
@@ -263,24 +263,24 @@ function $RootScopeProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$digest
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$digest
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
- * Process all of the {@link angular.module.NG.$rootScope.Scope#$watch watchers} of the current scope and its children.
- * Because a {@link angular.module.NG.$rootScope.Scope#$watch watcher}'s listener can change the model, the
- * `$digest()` keeps calling the {@link angular.module.NG.$rootScope.Scope#$watch watchers} until no more listeners are
+ * Process all of the {@link angular.module.ng.$rootScope.Scope#$watch watchers} of the current scope and its children.
+ * Because a {@link angular.module.ng.$rootScope.Scope#$watch watcher}'s listener can change the model, the
+ * `$digest()` keeps calling the {@link angular.module.ng.$rootScope.Scope#$watch watchers} until no more listeners are
* firing. This means that it is possible to get into an infinite loop. This function will throw
* `'Maximum iteration limit exceeded.'` if the number of iterations exceeds 100.
*
* Usually you don't call `$digest()` directly in
* {@link angular.directive.ng:controller controllers} or in {@link angular.directive directives}.
- * Instead a call to {@link angular.module.NG.$rootScope.Scope#$apply $apply()} (typically from within a
+ * Instead a call to {@link angular.module.ng.$rootScope.Scope#$apply $apply()} (typically from within a
* {@link angular.directive directive}) will force a `$digest()`.
*
* If you want to be notified whenever `$digest()` is called,
- * you can register a `watchExpression` function with {@link angular.module.NG.$rootScope.Scope#$watch $watch()}
+ * you can register a `watchExpression` function with {@link angular.module.ng.$rootScope.Scope#$watch $watch()}
* with no `listener`.
*
* You may have a need to call `$digest()` from within unit-tests, to simulate the scope
@@ -382,17 +382,17 @@ function $RootScopeProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$destroy
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$destroy
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
* Remove the current scope (and all of its children) from the parent scope. Removal implies
- * that calls to {@link angular.module.NG.$rootScope.Scope#$digest $digest()} will no longer propagate to the current
+ * that calls to {@link angular.module.ng.$rootScope.Scope#$digest $digest()} will no longer propagate to the current
* scope and its children. Removal also implies that the current scope is eligible for garbage
* collection.
*
- * The destructing scope emits an `$destroy` {@link angular.module.NG.$rootScope.Scope#$emit event}.
+ * The destructing scope emits an `$destroy` {@link angular.module.ng.$rootScope.Scope#$emit event}.
*
* The `$destroy()` is usually used by directives such as
* {@link angular.widget.@ng:repeat ng:repeat} for managing the unrolling of the loop.
@@ -411,8 +411,8 @@ function $RootScopeProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$eval
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$eval
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
@@ -421,7 +421,7 @@ function $RootScopeProvider(){
*
* # Example
<pre>
- var scope = angular.module.NG.$rootScope.Scope();
+ var scope = angular.module.ng.$rootScope.Scope();
scope.a = 1;
scope.b = 2;
@@ -442,8 +442,8 @@ function $RootScopeProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$evalAsync
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$evalAsync
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
@@ -452,11 +452,11 @@ function $RootScopeProvider(){
* The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only that:
*
* - it will execute in the current script execution context (before any DOM rendering).
- * - at least one {@link angular.module.NG.$rootScope.Scope#$digest $digest cycle} will be performed after
+ * - at least one {@link angular.module.ng.$rootScope.Scope#$digest $digest cycle} will be performed after
* `expression` execution.
*
* Any exceptions from the execution of the expression are forwarded to the
- * {@link angular.module.NG.$exceptionHandler $exceptionHandler} service.
+ * {@link angular.module.ng.$exceptionHandler $exceptionHandler} service.
*
* @param {(string|function())=} expression An angular expression to be executed.
*
@@ -470,16 +470,16 @@ function $RootScopeProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$apply
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$apply
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
* `$apply()` is used to execute an expression in angular from outside of the angular framework.
* (For example from browser DOM events, setTimeout, XHR or third party libraries).
* Because we are calling into the angular framework we need to perform proper scope life-cycle
- * of {@link angular.module.NG.$exceptionHandler exception handling},
- * {@link angular.module.NG.$rootScope.Scope#$digest executing watches}.
+ * of {@link angular.module.ng.$exceptionHandler exception handling},
+ * {@link angular.module.ng.$rootScope.Scope#$digest executing watches}.
*
* ## Life cycle
*
@@ -498,11 +498,11 @@ function $RootScopeProvider(){
* Scope's `$apply()` method transitions through the following stages:
*
* 1. The {@link guide/dev_guide.expressions expression} is executed using the
- * {@link angular.module.NG.$rootScope.Scope#$eval $eval()} method.
+ * {@link angular.module.ng.$rootScope.Scope#$eval $eval()} method.
* 2. Any exceptions from the execution of the expression are forwarded to the
- * {@link angular.module.NG.$exceptionHandler $exceptionHandler} service.
- * 3. The {@link angular.module.NG.$rootScope.Scope#$watch watch} listeners are fired immediately after the expression
- * was executed using the {@link angular.module.NG.$rootScope.Scope#$digest $digest()} method.
+ * {@link angular.module.ng.$exceptionHandler $exceptionHandler} service.
+ * 3. The {@link angular.module.ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the expression
+ * was executed using the {@link angular.module.ng.$rootScope.Scope#$digest $digest()} method.
*
*
* @param {(string|function())=} exp An angular expression to be executed.
@@ -524,12 +524,12 @@ function $RootScopeProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$on
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$on
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
- * Listen on events of a given type. See {@link angular.module.NG.$rootScope.Scope#$emit $emit} for discussion of
+ * Listen on events of a given type. See {@link angular.module.ng.$rootScope.Scope#$emit $emit} for discussion of
* event life cycle.
*
* @param {string} name Event name to listen on.
@@ -559,21 +559,21 @@ function $RootScopeProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$emit
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$emit
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
* Dispatches an event `name` upwards through the scope hierarchy notifying the
- * registered {@link angular.module.NG.$rootScope.Scope#$on} listeners.
+ * registered {@link angular.module.ng.$rootScope.Scope#$on} listeners.
*
* The event life cycle starts at the scope on which `$emit` was called. All
- * {@link angular.module.NG.$rootScope.Scope#$on listeners} listening for `name` event on this scope get notified.
+ * {@link angular.module.ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get notified.
* Afterwards, the event traverses upwards toward the root scope and calls all registered
* listeners along the way. The event will stop propagating if one of the listeners cancels it.
*
- * Any exception emmited from the {@link angular.module.NG.$rootScope.Scope#$on listeners} will be passed
- * onto the {@link angular.module.NG.$exceptionHandler $exceptionHandler} service.
+ * Any exception emmited from the {@link angular.module.ng.$rootScope.Scope#$on listeners} will be passed
+ * onto the {@link angular.module.ng.$exceptionHandler $exceptionHandler} service.
*
* @param {string} name Event name to emit.
* @param {...*} args Optional set of arguments which will be passed onto the event listeners.
@@ -610,21 +610,21 @@ function $RootScopeProvider(){
/**
* @ngdoc function
- * @name angular.module.NG.$rootScope.Scope#$broadcast
- * @methodOf angular.module.NG.$rootScope.Scope
+ * @name angular.module.ng.$rootScope.Scope#$broadcast
+ * @methodOf angular.module.ng.$rootScope.Scope
* @function
*
* @description
* Dispatches an event `name` downwards to all child scopes (and their children) notifying the
- * registered {@link angular.module.NG.$rootScope.Scope#$on} listeners.
+ * registered {@link angular.module.ng.$rootScope.Scope#$on} listeners.
*
* The event life cycle starts at the scope on which `$broadcast` was called. All
- * {@link angular.module.NG.$rootScope.Scope#$on listeners} listening for `name` event on this scope get notified.
+ * {@link angular.module.ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get notified.
* Afterwards, the event propagates to all direct and indirect scopes of the current scope and
* calls all registered listeners along the way. The event cannot be canceled.
*
- * Any exception emmited from the {@link angular.module.NG.$rootScope.Scope#$on listeners} will be passed
- * onto the {@link angular.module.NG.$exceptionHandler $exceptionHandler} service.
+ * Any exception emmited from the {@link angular.module.ng.$rootScope.Scope#$on listeners} will be passed
+ * onto the {@link angular.module.ng.$exceptionHandler $exceptionHandler} service.
*
* @param {string} name Event name to emit.
* @param {...*} args Optional set of arguments which will be passed onto the event listeners.
diff --git a/src/service/sniffer.js b/src/service/sniffer.js
index a8b6b1a5..4abe1fd2 100644
--- a/src/service/sniffer.js
+++ b/src/service/sniffer.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$sniffer
+ * @name angular.module.ng.$sniffer
* @requires $window
*
* @property {boolean} history Does the browser support html5 history api ?
diff --git a/src/service/window.js b/src/service/window.js
index 1a74ab46..7bb3dfca 100644
--- a/src/service/window.js
+++ b/src/service/window.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$window
+ * @name angular.module.ng.$window
*
* @description
* A reference to the browser's `window` object. While `window`
diff --git a/src/service/xhr.bulk.js b/src/service/xhr.bulk.js
index 727d29c1..fca96dde 100644
--- a/src/service/xhr.bulk.js
+++ b/src/service/xhr.bulk.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$xhr.bulk
+ * @name angular.module.ng.$xhr.bulk
* @requires $xhr
* @requires $xhr.error
* @requires $log
diff --git a/src/service/xhr.cache.js b/src/service/xhr.cache.js
index 840aaa6c..8a14ad99 100644
--- a/src/service/xhr.cache.js
+++ b/src/service/xhr.cache.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$xhr.cache
+ * @name angular.module.ng.$xhr.cache
* @function
*
* @requires $xhr.bulk
@@ -11,11 +11,11 @@
* @requires $log
*
* @description
- * Acts just like the {@link angular.module.NG.$xhr $xhr} service but caches responses for `GET`
+ * Acts just like the {@link angular.module.ng.$xhr $xhr} service but caches responses for `GET`
* requests. All cache misses are delegated to the $xhr service.
*
* @property {function()} delegate Function to delegate all the cache misses to. Defaults to
- * the {@link angular.module.NG.$xhr $xhr} service.
+ * the {@link angular.module.ng.$xhr $xhr} service.
* @property {object} data The hashmap where all cached entries are stored.
*
* @param {string} method HTTP method.
diff --git a/src/service/xhr.error.js b/src/service/xhr.error.js
index 6f0839b2..372f97f4 100644
--- a/src/service/xhr.error.js
+++ b/src/service/xhr.error.js
@@ -2,14 +2,14 @@
/**
* @ngdoc object
- * @name angular.module.NG.$xhr.error
+ * @name angular.module.ng.$xhr.error
* @function
* @requires $log
*
* @description
- * Error handler for {@link angular.module.NG.$xhr $xhr service}. An application can replaces this
+ * Error handler for {@link angular.module.ng.$xhr $xhr service}. An application can replaces this
* service with one specific for the application. The default implementation logs the error to
- * {@link angular.module.NG.$log $log.error}.
+ * {@link angular.module.ng.$log $log.error}.
*
* @param {Object} request Request object.
*
diff --git a/src/service/xhr.js b/src/service/xhr.js
index d34a37f2..d9c78fd6 100644
--- a/src/service/xhr.js
+++ b/src/service/xhr.js
@@ -2,7 +2,7 @@
/**
* @ngdoc object
- * @name angular.module.NG.$xhr
+ * @name angular.module.ng.$xhr
* @function
* @requires $browser $xhr delegates all XHR requests to the `$browser.xhr()`. A mock version
* of the $browser exists which allows setting expectations on XHR requests
@@ -12,14 +12,14 @@
*
* @description
* Generates an XHR request. The $xhr service delegates all requests to
- * {@link angular.module.NG.$browser $browser.xhr()} and adds error handling and security features.
+ * {@link angular.module.ng.$browser $browser.xhr()} and adds error handling and security features.
* While $xhr service provides nicer api than raw XmlHttpRequest, it is still considered a lower
* level api in angular. For a higher level abstraction that utilizes `$xhr`, please check out the
- * {@link angular.module.NG.$resource $resource} service.
+ * {@link angular.module.ng.$resource $resource} service.
*
* # Error handling
* If no `error callback` is specified, XHR response with response code other then `2xx` will be
- * delegated to {@link angular.module.NG.$xhr.error $xhr.error}. The `$xhr.error` can intercept the
+ * delegated to {@link angular.module.ng.$xhr.error $xhr.error}. The `$xhr.error` can intercept the
* request and process it in application specific way, or resume normal execution by calling the
* request `success` method.
*
@@ -98,7 +98,7 @@
*
* - {number} code [HTTP status code](http://en.wikipedia.org/wiki/List_of_HTTP_status_codes) of
* the response. This will currently always be 200, since all non-200 responses are routed to
- * {@link angular.module.NG.$xhr.error} service (or custom error callback).
+ * {@link angular.module.ng.$xhr.error} service (or custom error callback).
* - {string|Object} response Response object as string or an Object if the response was in JSON
* format.
* @param {function(number, (string|Object))} error A function to be called if the response code is
diff --git a/src/widget/form.js b/src/widget/form.js
index 419d2699..51864cf0 100644
--- a/src/widget/form.js
+++ b/src/widget/form.js
@@ -6,7 +6,7 @@
*
* @description
* Angular widget that creates a form scope using the
- * {@link angular.module.NG.$formFactory $formFactory} API. The resulting form scope instance is
+ * {@link angular.module.ng.$formFactory $formFactory} API. The resulting form scope instance is
* attached to the DOM element using the jQuery `.data()` method under the `$form` key.
* See {@link guide/dev_guide.forms forms} on detailed discussion of forms and widgets.
*
diff --git a/src/widget/input.js b/src/widget/input.js
index 2d4c1348..016e2353 100644
--- a/src/widget/input.js
+++ b/src/widget/input.js
@@ -617,7 +617,7 @@ var HTML5_INPUTS_TYPES = makeMap(
*
* The {@link angular.inputType custom angular.inputType}s provide a shorthand for declaring new
* inputs. This is a sharthand for text-box based inputs, and there is no need to go through the
- * full {@link angular.module.NG.$formFactory $formFactory} widget lifecycle.
+ * full {@link angular.module.ng.$formFactory $formFactory} widget lifecycle.
*
*
* @param {string} type Widget types as defined by {@link angular.inputType}. If the
diff --git a/src/widgets.js b/src/widgets.js
index ae507d73..c4494b29 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -40,7 +40,7 @@
* @param {string} src angular expression evaluating to URL. If the source is a string constant,
* make sure you wrap it in quotes, e.g. `src="'myPartialTemplate.html'"`.
* @param {Scope=} [scope=new_child_scope] optional expression which evaluates to an
- * instance of angular.module.NG.$rootScope.Scope to set the HTML fragment to.
+ * instance of angular.module.ng.$rootScope.Scope to set the HTML fragment to.
* @param {string=} onload Expression to evaluate when a new partial is loaded.
*
* @example
@@ -491,7 +491,7 @@ angularWidget("@ng:non-bindable", noop);
*
* @description
* # Overview
- * `ng:view` is a widget that complements the {@link angular.module.NG.$route $route} service by
+ * `ng:view` is a widget that complements the {@link angular.module.ng.$route $route} service by
* including the rendered template of the current route into the main layout (`index.html`) file.
* Every time the current route changes, the included view changes with it according to the
* configuration of the `$route` service.