From f16150d5f1b20b3d633b4402095ea89baa4be042 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 11 Jun 2012 23:49:24 -0700 Subject: docs(*): simplify doc urls we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions --- src/Angular.js | 7 +- src/auto/injector.js | 64 +++++------ src/jqLite.js | 2 +- src/loader.js | 20 ++-- src/ng/anchorScroll.js | 2 +- src/ng/browser.js | 32 +++--- src/ng/cacheFactory.js | 6 +- src/ng/compile.js | 34 +++--- src/ng/controller.js | 14 +-- src/ng/defer.js | 10 +- src/ng/directive/booleanAttrs.js | 14 +-- src/ng/directive/form.js | 20 ++-- src/ng/directive/input.js | 62 +++++----- src/ng/directive/ngBind.js | 12 +- src/ng/directive/ngClass.js | 14 +-- src/ng/directive/ngCloak.js | 2 +- src/ng/directive/ngController.js | 4 +- src/ng/directive/ngCsp.js | 4 +- src/ng/directive/ngEventDirs.js | 32 +++--- src/ng/directive/ngInclude.js | 8 +- src/ng/directive/ngInit.js | 2 +- src/ng/directive/ngNonBindable.js | 2 +- src/ng/directive/ngPluralize.js | 2 +- src/ng/directive/ngRepeat.js | 2 +- src/ng/directive/ngShowHide.js | 4 +- src/ng/directive/ngStyle.js | 2 +- src/ng/directive/ngSwitch.js | 2 +- src/ng/directive/ngTransclude.js | 2 +- src/ng/directive/ngView.js | 8 +- src/ng/directive/script.js | 2 +- src/ng/directive/select.js | 4 +- src/ng/document.js | 2 +- src/ng/exceptionHandler.js | 4 +- src/ng/filter.js | 8 +- src/ng/filter/filter.js | 4 +- src/ng/filter/filters.js | 12 +- src/ng/filter/limitTo.js | 4 +- src/ng/filter/orderBy.js | 4 +- src/ng/http.js | 60 +++++----- src/ng/httpBackend.js | 8 +- src/ng/interpolate.js | 16 +-- src/ng/locale.js | 2 +- src/ng/location.js | 48 ++++---- src/ng/log.js | 18 +-- src/ng/parse.js | 2 +- src/ng/q.js | 20 ++-- src/ng/rootElement.js | 6 +- src/ng/rootScope.js | 184 ++++++++++++++--------------- src/ng/route.js | 60 +++++----- src/ng/routeParams.js | 6 +- src/ng/sniffer.js | 2 +- src/ng/timeout.js | 12 +- src/ng/window.js | 2 +- src/ngCookies/cookies.js | 18 +-- src/ngMock/angular-mocks.js | 204 ++++++++++++++++----------------- src/ngResource/resource.js | 8 +- src/ngSanitize/directive/ngBindHtml.js | 6 +- src/ngSanitize/filter/linky.js | 2 +- src/ngSanitize/sanitize.js | 4 +- src/ngScenario/dsl.js | 8 +- 60 files changed, 565 insertions(+), 564 deletions(-) (limited to 'src') diff --git a/src/Angular.js b/src/Angular.js index c3b57c10..63d04200 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -61,7 +61,6 @@ var Error = window.Error, /** @name angular */ angular = window.angular || (window.angular = {}), angularModule, - /** @name angular.module.ng */ nodeName_, uid = ['0', '0', '0']; @@ -520,7 +519,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 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`. @@ -830,7 +829,7 @@ function encodeUriQuery(val, pctEncodeSpaces) { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngApp + * @name ng.directive:ngApp * * @element ANY * @param {angular.Module} ngApp on optional application @@ -910,7 +909,7 @@ function angularInit(element, bootstrap) { * * @param {Element} element DOM element which is the root of angular application. * @param {Array=} modules an array of module declarations. See: {@link angular.module modules} - * @returns {angular.module.auto.$injector} Returns the newly created injector for this app. + * @returns {AUTO.$injector} Returns the newly created injector for this app. */ function bootstrap(element, modules) { element = jqLite(element); diff --git a/src/auto/injector.js b/src/auto/injector.js index fd664b0e..e07c03a7 100644 --- a/src/auto/injector.js +++ b/src/auto/injector.js @@ -12,7 +12,7 @@ * @param {Array.} modules A list of module functions or their aliases. See * {@link angular.module}. The `ng` module must be explicitly added. - * @returns {function()} Injector function. See {@link angular.module.AUTO.$injector $injector}. + * @returns {function()} Injector function. See {@link AUTO.$injector $injector}. * * @example * Typical usage @@ -32,10 +32,10 @@ /** * @ngdoc overview - * @name angular.module.AUTO + * @name AUTO * @description * - * Implicit module which gets automatically added to each {@link angular.module.AUTO.$injector $injector}. + * Implicit module which gets automatically added to each {@link AUTO.$injector $injector}. */ var FN_ARGS = /^function\s*[^\(]*\(\s*([^\)]*)\)/m; @@ -74,13 +74,13 @@ function annotate(fn) { /** * @ngdoc object - * @name angular.module.AUTO.$injector + * @name AUTO.$injector * @function * * @description * * `$injector` is used to retrieve object instances as defined by - * {@link angular.module.AUTO.$provide provider}, instantiate types, invoke methods, + * {@link AUTO.$provide provider}, instantiate types, invoke methods, * and load modules. * * The following always holds true: @@ -114,7 +114,7 @@ function annotate(fn) { * ## Inference * * In JavaScript calling `toString()` on a function returns the function definition. The definition can then be - * parsed and the function arguments can be extracted. *NOTE:* This does not work with minfication, and obfuscation + * parsed and the function arguments can be extracted. *NOTE:* This does not work with minification, and obfuscation * tools since these tools change the argument names. * * ## `$inject` Annotation @@ -126,8 +126,8 @@ function annotate(fn) { /** * @ngdoc method - * @name angular.module.AUTO.$injector#get - * @methodOf angular.module.AUTO.$injector + * @name AUTO.$injector#get + * @methodOf AUTO.$injector * * @description * Return an instance of the service. @@ -138,8 +138,8 @@ function annotate(fn) { /** * @ngdoc method - * @name angular.module.AUTO.$injector#invoke - * @methodOf angular.module.AUTO.$injector + * @name AUTO.$injector#invoke + * @methodOf AUTO.$injector * * @description * Invoke the method and supply the method arguments from the `$injector`. @@ -153,8 +153,8 @@ function annotate(fn) { /** * @ngdoc method - * @name angular.module.AUTO.$injector#instantiate - * @methodOf angular.module.AUTO.$injector + * @name AUTO.$injector#instantiate + * @methodOf AUTO.$injector * @description * Create a new instance of JS type. The method takes a constructor function invokes the new operator and supplies * all of the arguments to the constructor function as specified by the constructor annotation. @@ -167,8 +167,8 @@ function annotate(fn) { /** * @ngdoc method - * @name angular.module.AUTO.$injector#annotate - * @methodOf angular.module.AUTO.$injector + * @name AUTO.$injector#annotate + * @methodOf AUTO.$injector * * @description * Returns an array of service names which the function is requesting for injection. This API is used by the injector @@ -249,7 +249,7 @@ function annotate(fn) { /** * @ngdoc object - * @name angular.module.AUTO.$provide + * @name AUTO.$provide * * @description * @@ -299,8 +299,8 @@ function annotate(fn) { /** * @ngdoc method - * @name angular.module.AUTO.$provide#provider - * @methodOf angular.module.AUTO.$provide + * @name AUTO.$provide#provider + * @methodOf AUTO.$provide * @description * * Register a provider for a service. The providers can be retrieved and can have additional configuration methods. @@ -309,17 +309,17 @@ function annotate(fn) { * @param {(Object|function())} provider If the provider is: * * - `Object`: then it should have a `$get` method. The `$get` method will be invoked using - * {@link angular.module.AUTO.$injector#invoke $injector.invoke()} when an instance needs to be created. + * {@link AUTO.$injector#invoke $injector.invoke()} when an instance needs to be created. * - `Constructor`: a new instance of the provider will be created using - * {@link angular.module.AUTO.$injector#instantiate $injector.instantiate()}, then treated as `object`. + * {@link AUTO.$injector#instantiate $injector.instantiate()}, then treated as `object`. * * @returns {Object} registered provider instance */ /** * @ngdoc method - * @name angular.module.AUTO.$provide#factory - * @methodOf angular.module.AUTO.$provide + * @name AUTO.$provide#factory + * @methodOf AUTO.$provide * @description * * A short hand for configuring services if only `$get` method is required. @@ -333,8 +333,8 @@ function annotate(fn) { /** * @ngdoc method - * @name angular.module.AUTO.$provide#service - * @methodOf angular.module.AUTO.$provide + * @name AUTO.$provide#service + * @methodOf AUTO.$provide * @description * * A short hand for registering service of given class. @@ -347,8 +347,8 @@ function annotate(fn) { /** * @ngdoc method - * @name angular.module.AUTO.$provide#value - * @methodOf angular.module.AUTO.$provide + * @name AUTO.$provide#value + * @methodOf AUTO.$provide * @description * * A short hand for configuring services if the `$get` method is a constant. @@ -361,13 +361,13 @@ function annotate(fn) { /** * @ngdoc method - * @name angular.module.AUTO.$provide#constant - * @methodOf angular.module.AUTO.$provide + * @name AUTO.$provide#constant + * @methodOf AUTO.$provide * @description * - * A constant value, but unlike {@link angular.module.AUTO.$provide#value value} it can be injected + * A constant value, but unlike {@link AUTO.$provide#value value} it can be injected * into configuration function (other modules) and it is not interceptable by - * {@link angular.module.AUTO.$provide#decorator decorator}. + * {@link AUTO.$provide#decorator decorator}. * * @param {string} name The name of the constant. * @param {*} value The constant value. @@ -377,8 +377,8 @@ function annotate(fn) { /** * @ngdoc method - * @name angular.module.AUTO.$provide#decorator - * @methodOf angular.module.AUTO.$provide + * @name AUTO.$provide#decorator + * @methodOf AUTO.$provide * @description * * Decoration of service, allows the decorator to intercept the service instance creation. The @@ -387,7 +387,7 @@ function annotate(fn) { * * @param {string} name The name of the service to decorate. * @param {function()} decorator This function will be invoked when the service needs to be - * instanciated. The function is called using the {@link angular.module.AUTO.$injector#invoke + * instanciated. The function is called using the {@link AUTO.$injector#invoke * injector.invoke} method and is therefore fully injectable. Local injection arguments: * * * `$delegate` - The original service instance, which can be monkey patched, configured, diff --git a/src/jqLite.js b/src/jqLite.js index 3e8fb266..d0127076 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -65,7 +65,7 @@ * camelCase directive name, then the controller for this directive will be retrieved (e.g. * `'ngModel'`). * - `injector()` - retrieves the injector of the current element or its parent. - * - `scope()` - retrieves the {@link api/angular.module.ng.$rootScope.Scope scope} of the current + * - `scope()` - retrieves the {@link api/ng.$rootScope.Scope scope} of the current * element or its parent. * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top * parent element is reached. diff --git a/src/loader.js b/src/loader.js index e0dd8d7f..668e9a60 100644 --- a/src/loader.js +++ b/src/loader.js @@ -31,7 +31,7 @@ function setupModuleLoader(window) { * # Module * * A module is a collocation of services, directives, filters, and configure information. Module - * is used to configure the {@link angular.module.AUTO.$injector $injector}. + * is used to configure the {@link AUTO.$injector $injector}. * *
      * // Create a new module
@@ -54,7 +54,7 @@ function setupModuleLoader(window) {
      * 
* * However it's more likely that you'll just use - * {@link angular.module.ng.$compileProvider.directive.ngApp ngApp} or + * {@link ng.directive:ngApp ngApp} or * {@link angular.bootstrap} to simplify this process for you. * * @param {!string} name The name of the module to create or retrieve. @@ -114,7 +114,7 @@ function setupModuleLoader(window) { * @param {string} name service name * @param {Function} providerType Construction function for creating new instance of the service. * @description - * See {@link angular.module.AUTO.$provide#provider $provide.provider()}. + * See {@link AUTO.$provide#provider $provide.provider()}. */ provider: invokeLater('$provide', 'provider'), @@ -125,7 +125,7 @@ function setupModuleLoader(window) { * @param {string} name service name * @param {Function} providerFunction Function for creating new instance of the service. * @description - * See {@link angular.module.AUTO.$provide#factory $provide.factory()}. + * See {@link AUTO.$provide#factory $provide.factory()}. */ factory: invokeLater('$provide', 'factory'), @@ -136,7 +136,7 @@ function setupModuleLoader(window) { * @param {string} name service name * @param {Function} constructor A constructor function that will be instantiated. * @description - * See {@link angular.module.AUTO.$provide#service $provide.service()}. + * See {@link AUTO.$provide#service $provide.service()}. */ service: invokeLater('$provide', 'service'), @@ -147,7 +147,7 @@ function setupModuleLoader(window) { * @param {string} name service name * @param {*} object Service instance object. * @description - * See {@link angular.module.AUTO.$provide#value $provide.value()}. + * See {@link AUTO.$provide#value $provide.value()}. */ value: invokeLater('$provide', 'value'), @@ -159,7 +159,7 @@ function setupModuleLoader(window) { * @param {*} object Constant value. * @description * Because the constant are fixed, they get applied before other provide methods. - * See {@link angular.module.AUTO.$provide#constant $provide.constant()}. + * See {@link AUTO.$provide#constant $provide.constant()}. */ constant: invokeLater('$provide', 'constant', 'unshift'), @@ -170,7 +170,7 @@ function setupModuleLoader(window) { * @param {string} name Filter name. * @param {Function} filterFactory Factory function for creating new instance of filter. * @description - * See {@link angular.module.ng.$filterProvider#register $filterProvider.register()}. + * See {@link ng.$filterProvider#register $filterProvider.register()}. */ filter: invokeLater('$filterProvider', 'register'), @@ -181,7 +181,7 @@ function setupModuleLoader(window) { * @param {string} name Controller name. * @param {Function} constructor Controller constructor function. * @description - * See {@link angular.module.ng.$controllerProvider#register $controllerProvider.register()}. + * See {@link ng.$controllerProvider#register $controllerProvider.register()}. */ controller: invokeLater('$controllerProvider', 'register'), @@ -193,7 +193,7 @@ function setupModuleLoader(window) { * @param {Function} directiveFactory Factory function for creating new instance of * directives. * @description - * See {@link angular.module.ng.$compileProvider.directive $compileProvider.directive()}. + * See {@link ng.$compileProvider.directive $compileProvider.directive()}. */ directive: invokeLater('$compileProvider', 'directive'), diff --git a/src/ng/anchorScroll.js b/src/ng/anchorScroll.js index 19a09498..ecaa62e0 100644 --- a/src/ng/anchorScroll.js +++ b/src/ng/anchorScroll.js @@ -1,6 +1,6 @@ /** * @ngdoc function - * @name angular.module.ng.$anchorScroll + * @name ng.$anchorScroll * @requires $window * @requires $location * @requires $rootScope diff --git a/src/ng/browser.js b/src/ng/browser.js index 16a5582f..0bace2e8 100644 --- a/src/ng/browser.js +++ b/src/ng/browser.js @@ -2,7 +2,7 @@ /** * @ngdoc object - * @name angular.module.ng.$browser + * @name ng.$browser * @requires $log * @description * This object has two goals: @@ -10,7 +10,7 @@ * - 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.ngMock.$browser mock implementation} of the `$browser` + * For tests we provide {@link 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. */ @@ -87,8 +87,8 @@ function Browser(window, document, $log, $sniffer) { /** * @ngdoc method - * @name angular.module.ng.$browser#addPollFn - * @methodOf angular.module.ng.$browser + * @name ng.$browser#addPollFn + * @methodOf ng.$browser * * @param {function()} fn Poll function to add * @@ -128,8 +128,8 @@ function Browser(window, document, $log, $sniffer) { /** * @ngdoc method - * @name angular.module.ng.$browser#url - * @methodOf angular.module.ng.$browser + * @name ng.$browser#url + * @methodOf ng.$browser * * @description * GETTER: @@ -142,7 +142,7 @@ function Browser(window, document, $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 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 ? @@ -184,8 +184,8 @@ function Browser(window, document, $log, $sniffer) { /** * @ngdoc method - * @name angular.module.ng.$browser#onUrlChange - * @methodOf angular.module.ng.$browser + * @name ng.$browser#onUrlChange + * @methodOf ng.$browser * @TODO(vojta): refactor to use node's syntax for events * * @description @@ -201,7 +201,7 @@ function Browser(window, document, $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 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. @@ -250,8 +250,8 @@ function Browser(window, document, $log, $sniffer) { /** * @ngdoc method - * @name angular.module.ng.$browser#cookies - * @methodOf angular.module.ng.$browser + * @name ng.$browser#cookies + * @methodOf ng.$browser * * @param {string=} name Cookie name * @param {string=} value Cokkie value @@ -309,8 +309,8 @@ function Browser(window, document, $log, $sniffer) { /** * @ngdoc method - * @name angular.module.ng.$browser#defer - * @methodOf angular.module.ng.$browser + * @name ng.$browser#defer + * @methodOf 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()`. @@ -338,8 +338,8 @@ function Browser(window, document, $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 ng.$browser#defer.cancel + * @methodOf ng.$browser.defer * * @description * Cancels a defered task identified with `deferId`. diff --git a/src/ng/cacheFactory.js b/src/ng/cacheFactory.js index c91ffce7..de8004f2 100644 --- a/src/ng/cacheFactory.js +++ b/src/ng/cacheFactory.js @@ -1,6 +1,6 @@ /** * @ngdoc object - * @name angular.module.ng.$cacheFactory + * @name ng.$cacheFactory * * @description * Factory that constructs cache objects. @@ -153,12 +153,12 @@ function $CacheFactoryProvider() { /** * @ngdoc object - * @name angular.module.ng.$templateCache + * @name ng.$templateCache * * @description * Cache used for storing html templates. * - * See {@link angular.module.ng.$cacheFactory $cacheFactory}. + * See {@link ng.$cacheFactory $cacheFactory}. * */ function $TemplateCacheProvider() { diff --git a/src/ng/compile.js b/src/ng/compile.js index 1dbb63be..04a1a438 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -23,20 +23,20 @@ var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: '; /** * @ngdoc function - * @name angular.module.ng.$compile + * @name 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 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.module.ng.$compileProvider.directive directives}. For each match it + * {@link ng.$compileProvider.directive directives}. For each match it * executes corresponding template function and collects the * instance functions into a single template function which is then returned. * * The template function can then be used once to produce the view or as it is the case with - * {@link angular.module.ng.$compileProvider.directive.ngRepeat repeater} many-times, in which + * {@link ng.directive:ngRepeat repeater} many-times, in which * case each call results in a view that is a DOM clone of the original template. * @@ -99,7 +99,7 @@ var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: '; * @returns {function(scope[, cloneAttachFn])} a link 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 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 @@ -144,7 +144,7 @@ var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: '; /** * @ngdoc service - * @name angular.module.ng.$compileProvider + * @name ng.$compileProvider * @function * * @description @@ -152,8 +152,8 @@ var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: '; /** * @ngdoc function - * @name angular.module.ng.$compileProvider#directive - * @methodOf angular.module.ng.$compileProvider + * @name ng.$compileProvider#directive + * @methodOf ng.$compileProvider * @function * * @description @@ -161,7 +161,7 @@ var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: '; * * @param {string} name name of the directive. * @param {function} directiveFactory An injectable directive factory function. - * @returns {angular.module.ng.$compileProvider} Self for chaining. + * @returns {ng.$compileProvider} Self for chaining. */ $CompileProvider.$inject = ['$provide']; function $CompileProvider($provide) { @@ -174,8 +174,8 @@ function $CompileProvider($provide) { /** * @ngdoc function - * @name angular.module.ng.$compileProvider.directive - * @methodOf angular.module.ng.$compileProvider + * @name ng.$compileProvider.directive + * @methodOf ng.$compileProvider * @function * * @description @@ -1085,7 +1085,7 @@ function directiveNormalize(name) { /** * @ngdoc object - * @name angular.module.ng.$compile.directive.Attributes + * @name ng.$compile.directive.Attributes * @description * * A shared object between directive compile / linking functions which contains normalized DOM element @@ -1097,8 +1097,8 @@ function directiveNormalize(name) { /** * @ngdoc property - * @name angular.module.ng.$compile.directive.Attributes#$attr - * @propertyOf angular.module.ng.$compile.directive.Attributes + * @name ng.$compile.directive.Attributes#$attr + * @propertyOf ng.$compile.directive.Attributes * @returns {object} A map of DOM element attribute names to the normalized name. This is * needed to do reverse lookup from normalized name back to actual name. */ @@ -1106,8 +1106,8 @@ function directiveNormalize(name) { /** * @ngdoc function - * @name angular.module.ng.$compile.directive.Attributes#$set - * @methodOf angular.module.ng.$compile.directive.Attributes + * @name ng.$compile.directive.Attributes#$set + * @methodOf ng.$compile.directive.Attributes * @function * * @description @@ -1115,7 +1115,7 @@ function directiveNormalize(name) { * * * @param {string} name Normalized element attribute name of the property to modify. The name is - * revers translated using the {@link angular.module.ng.$compile.directive.Attributes#$attr $attr} + * revers translated using the {@link ng.$compile.directive.Attributes#$attr $attr} * property to the original name. * @param {string} value Value to set the attribute to. */ diff --git a/src/ng/controller.js b/src/ng/controller.js index 67f70aad..e2f1b6ac 100644 --- a/src/ng/controller.js +++ b/src/ng/controller.js @@ -2,13 +2,13 @@ /** * @ngdoc object - * @name angular.module.ng.$controllerProvider + * @name ng.$controllerProvider * @description - * The {@link angular.module.ng.$controller $controller service} is used by Angular to create new + * The {@link ng.$controller $controller service} is used by Angular to create new * controllers. * * This provider allows controller registration via the - * {@link angular.module.ng.$controllerProvider#register register} method. + * {@link ng.$controllerProvider#register register} method. */ function $ControllerProvider() { var controllers = {}; @@ -16,8 +16,8 @@ function $ControllerProvider() { /** * @ngdoc function - * @name angular.module.ng.$controllerProvider#register - * @methodOf angular.module.ng.$controllerProvider + * @name ng.$controllerProvider#register + * @methodOf ng.$controllerProvider * @param {string} name Controller name * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI * annotations in the array notation). @@ -35,7 +35,7 @@ function $ControllerProvider() { /** * @ngdoc function - * @name angular.module.ng.$controller + * @name ng.$controller * @requires $injector * * @param {Function|string} constructor If called with a function then it's considered to be the @@ -52,7 +52,7 @@ function $ControllerProvider() { * @description * `$controller` service is responsible for instantiating controllers. * - * It's just simple call to {@link angular.module.AUTO.$injector $injector}, but extracted into + * It's just simple call to {@link AUTO.$injector $injector}, but extracted into * a service, so that one can override this service with {@link https://gist.github.com/1649788 * BC version}. */ diff --git a/src/ng/defer.js b/src/ng/defer.js index b5dc8844..850d9cf5 100644 --- a/src/ng/defer.js +++ b/src/ng/defer.js @@ -2,15 +2,15 @@ /** * @ngdoc function - * @name angular.module.ng.$defer + * @name ng.$defer * @deprecated Made obsolete by $timeout service. Please migrate your code. This service will be * removed with 1.0 final. * @requires $browser * * @description - * Delegates to {@link angular.module.ng.$browser#defer $browser.defer}, but wraps the `fn` function + * Delegates to {@link 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 ng.$exceptionHandler $exceptionHandler} service. * * In tests you can use `$browser.defer.flush()` to flush the queue of deferred functions. * @@ -21,8 +21,8 @@ /** * @ngdoc function - * @name angular.module.ng.$defer#cancel - * @methodOf angular.module.ng.$defer + * @name ng.$defer#cancel + * @methodOf ng.$defer * * @description * Cancels a defered task identified with `deferId`. diff --git a/src/ng/directive/booleanAttrs.js b/src/ng/directive/booleanAttrs.js index b0c1b78f..cce10a3b 100644 --- a/src/ng/directive/booleanAttrs.js +++ b/src/ng/directive/booleanAttrs.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngHref + * @name ng.directive:ngHref * @restrict A * * @description @@ -82,7 +82,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngSrc + * @name ng.directive:ngSrc * @restrict A * * @description @@ -107,7 +107,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngDisabled + * @name ng.directive:ngDisabled * @restrict A * * @description @@ -146,7 +146,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngChecked + * @name ng.directive:ngChecked * @restrict A * * @description @@ -176,7 +176,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngMultiple + * @name ng.directive:ngMultiple * @restrict A * * @description @@ -212,7 +212,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngReadonly + * @name ng.directive:ngReadonly * @restrict A * * @description @@ -242,7 +242,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngSelected + * @name ng.directive:ngSelected * @restrict A * * @description diff --git a/src/ng/directive/form.js b/src/ng/directive/form.js index 5f1cc1d2..cc229759 100644 --- a/src/ng/directive/form.js +++ b/src/ng/directive/form.js @@ -10,7 +10,7 @@ var nullFormCtrl = { /** * @ngdoc object - * @name angular.module.ng.$compileProvider.directive.form.FormController + * @name ng.directive:form.FormController * * @property {boolean} $pristine True if user has not interacted with the form yet. * @property {boolean} $dirty True if user has already interacted with the form. @@ -27,7 +27,7 @@ var nullFormCtrl = { * `FormController` keeps track of all its controls and nested forms as well as state of them, * such as being valid/invalid or dirty/pristine. * - * Each {@link angular.module.ng.$compileProvider.directive.form form} directive creates an instance + * Each {@link ng.directive:form form} directive creates an instance * of `FormController`. * */ @@ -124,11 +124,11 @@ function FormController(element, attrs) { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngForm + * @name ng.directive:ngForm * @restrict EAC * * @description - * Nestable alias of {@link angular.module.ng.$compileProvider.directive.form `form`} directive. HTML + * Nestable alias of {@link ng.directive:form `form`} directive. HTML * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a * sub-group of controls needs to be determined. * @@ -139,21 +139,21 @@ function FormController(element, attrs) { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.form + * @name ng.directive:form * @restrict E * * @description * Directive that instantiates - * {@link angular.module.ng.$compileProvider.directive.form.FormController FormController}. + * {@link ng.directive:form.FormController FormController}. * * If `name` attribute is specified, the form controller is published onto the current scope under * this name. * - * # Alias: {@link angular.module.ng.$compileProvider.directive.ngForm `ngForm`} + * # Alias: {@link ng.directive:ngForm `ngForm`} * * In angular forms can be nested. This means that the outer form is valid when all of the child * forms are valid as well. However browsers do not allow nesting of `
` elements, for this - * reason angular provides {@link angular.module.ng.$compileProvider.directive.ngForm `ngForm`} alias + * reason angular provides {@link ng.directive:ngForm `ngForm`} alias * which behaves identical to `` but allows form nesting. * * @@ -177,8 +177,8 @@ function FormController(element, attrs) { * You can use one of the following two ways to specify what javascript method should be called when * a form is submitted: * - * - {@link angular.module.ng.$compileProvider.directive.ngSubmit ngSubmit} directive on the form element - * - {@link angular.module.ng.$compileProvider.directive.ngClick ngClick} directive on the first + * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element + * - {@link ng.directive:ngClick ngClick} directive on the first * button or input field of type submit (input[type=submit]) * * To prevent double execution of the handler, use only one of ngSubmit or ngClick directives. This diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index 04af4c2a..40b29b23 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -8,7 +8,7 @@ var inputType = { /** * @ngdoc inputType - * @name angular.module.ng.$compileProvider.directive.input.text + * @name ng.directive:input.text * * @description * Standard HTML text input with angular data binding. @@ -74,7 +74,7 @@ var inputType = { /** * @ngdoc inputType - * @name angular.module.ng.$compileProvider.directive.input.number + * @name ng.directive:input.number * * @description * Text input with number validation and transformation. Sets the `number` validation @@ -142,7 +142,7 @@ var inputType = { /** * @ngdoc inputType - * @name angular.module.ng.$compileProvider.directive.input.url + * @name ng.directive:input.url * * @description * Text input with URL validation. Sets the `url` validation error key if the content is not a @@ -207,7 +207,7 @@ var inputType = { /** * @ngdoc inputType - * @name angular.module.ng.$compileProvider.directive.input.email + * @name ng.directive:input.email * * @description * Text input with email validation. Sets the `email` validation error key if not a valid email @@ -270,7 +270,7 @@ var inputType = { /** * @ngdoc inputType - * @name angular.module.ng.$compileProvider.directive.input.radio + * @name ng.directive:input.radio * * @description * HTML radio button. @@ -311,7 +311,7 @@ var inputType = { /** * @ngdoc inputType - * @name angular.module.ng.$compileProvider.directive.input.checkbox + * @name ng.directive:input.checkbox * * @description * HTML checkbox. @@ -627,13 +627,13 @@ function checkboxInputType(scope, element, attr, ctrl) { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.textarea + * @name ng.directive:textarea * @restrict E * * @description * HTML textarea element control with angular data-binding. The data-binding and validation * properties of this element are exactly the same as those of the - * {@link angular.module.ng.$compileProvider.directive.input input element}. + * {@link ng.directive:input input element}. * * @param {string} ngModel Assignable angular expression to data-bind to. * @param {string=} name Property name of the form under which the control is published. @@ -652,7 +652,7 @@ function checkboxInputType(scope, element, attr, ctrl) { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.input + * @name ng.directive:input * @restrict E * * @description @@ -764,7 +764,7 @@ var VALID_CLASS = 'ng-valid', /** * @ngdoc object - * @name angular.module.ng.$compileProvider.directive.ngModel.NgModelController + * @name ng.directive:ngModel.NgModelController * * @property {string} $viewValue Actual string value in the view. * @property {*} $modelValue The value in the model, that the control is bound to. @@ -880,8 +880,8 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ /** * @ngdoc function - * @name angular.module.ng.$compileProvider.directive.ngModel.NgModelController#$render - * @methodOf angular.module.ng.$compileProvider.directive.ngModel.NgModelController + * @name ng.directive:ngModel.NgModelController#$render + * @methodOf ng.directive:ngModel.NgModelController * * @description * Called when the view needs to be updated. It is expected that the user of the ng-model @@ -908,8 +908,8 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ /** * @ngdoc function - * @name angular.module.ng.$compileProvider.directive.ngModel.NgModelController#$setValidity - * @methodOf angular.module.ng.$compileProvider.directive.ngModel.NgModelController + * @name ng.directive:ngModel.NgModelController#$setValidity + * @methodOf ng.directive:ngModel.NgModelController * * @description * Change the validity state, and notifies the form when the control changes validity. (i.e. it @@ -950,15 +950,15 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ /** * @ngdoc function - * @name angular.module.ng.$compileProvider.directive.ngModel.NgModelController#$setViewValue - * @methodOf angular.module.ng.$compileProvider.directive.ngModel.NgModelController + * @name ng.directive:ngModel.NgModelController#$setViewValue + * @methodOf ng.directive:ngModel.NgModelController * * @description * Read a value from view. * * This method should be called from within a DOM event handler. - * For example {@link angular.module.ng.$compileProvider.directive.input input} or - * {@link angular.module.ng.$compileProvider.directive.select select} directives call it. + * For example {@link ng.directive:input input} or + * {@link ng.directive:select select} directives call it. * * It internally calls all `formatters` and if resulted value is valid, updates the model and * calls all registered change listeners. @@ -1018,7 +1018,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngModel + * @name ng.directive:ngModel * * @element input * @@ -1033,19 +1033,19 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ * - providing validation behavior (i.e. required, number, email, url), * - keeping state of the control (valid/invalid, dirty/pristine, validation errors), * - setting related css class onto the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`), - * - register the control with parent {@link angular.module.ng.$compileProvider.directive.form form}. + * - register the control with parent {@link ng.directive:form form}. * * For basic examples, how to use `ngModel`, see: * - * - {@link angular.module.ng.$compileProvider.directive.input input} - * - {@link angular.module.ng.$compileProvider.directive.input.text text} - * - {@link angular.module.ng.$compileProvider.directive.input.checkbox checkbox} - * - {@link angular.module.ng.$compileProvider.directive.input.radio radio} - * - {@link angular.module.ng.$compileProvider.directive.input.number number} - * - {@link angular.module.ng.$compileProvider.directive.input.email email} - * - {@link angular.module.ng.$compileProvider.directive.input.url url} - * - {@link angular.module.ng.$compileProvider.directive.select select} - * - {@link angular.module.ng.$compileProvider.directive.textarea textarea} + * - {@link ng.directive:input input} + * - {@link ng.directive:input.text text} + * - {@link ng.directive:input.checkbox checkbox} + * - {@link ng.directive:input.radio radio} + * - {@link ng.directive:input.number number} + * - {@link ng.directive:input.email email} + * - {@link ng.directive:input.url url} + * - {@link ng.directive:select select} + * - {@link ng.directive:textarea textarea} * */ var ngModelDirective = function() { @@ -1070,7 +1070,7 @@ var ngModelDirective = function() { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngChange + * @name ng.directive:ngChange * @restrict E * * @description @@ -1156,7 +1156,7 @@ var requiredDirective = function() { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngList + * @name ng.directive:ngList * * @description * Text input that converts between comma-seperated string into an array of strings. diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js index f6ae6324..70f25370 100644 --- a/src/ng/directive/ngBind.js +++ b/src/ng/directive/ngBind.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngBind + * @name ng.directive:ngBind * * @description * The `ngBind` attribute tells Angular to replace the text content of the specified HTML element @@ -18,7 +18,7 @@ * bindings invisible to the user while the page is loading. * * An alternative solution to this problem would be using the - * {@link angular.module.ng.$compileProvider.directive.ngCloak ngCloak} directive. + * {@link ng.directive:ngCloak ngCloak} directive. * * * @element ANY @@ -57,7 +57,7 @@ var ngBindDirective = ngDirective(function(scope, element, attr) { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngBindTemplate + * @name ng.directive:ngBindTemplate * * @description * The `ngBindTemplate` directive specifies that the element @@ -116,15 +116,15 @@ var ngBindTemplateDirective = ['$interpolate', function($interpolate) { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngBindHtmlUnsafe + * @name ng.directive:ngBindHtmlUnsafe * * @description * Creates a binding that will innerHTML the result of evaluating the `expression` into the current * element. *The innerHTML-ed content will not be sanitized!* You should use this directive only if - * {@link angular.module.ngSanitize.directive.ngBindHtml ngBindHtml} directive is too + * {@link ngSanitize.directive:ngBindHtml ngBindHtml} directive is too * restrictive and when you absolutely trust the source of the content you are binding to. * - * See {@link angular.module.ngSanitize.$sanitize $sanitize} docs for examples. + * See {@link ngSanitize.$sanitize $sanitize} docs for examples. * * @element ANY * @param {expression} ngBindHtmlUnsafe {@link guide/expression Expression} to evaluate. diff --git a/src/ng/directive/ngClass.js b/src/ng/directive/ngClass.js index 9beed351..e054d4c6 100644 --- a/src/ng/directive/ngClass.js +++ b/src/ng/directive/ngClass.js @@ -19,7 +19,7 @@ function classDirective(name, selector) { /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngClass + * @name ng.directive:ngClass * * @description * The `ngClass` allows you to set CSS class on HTML element dynamically by databinding an @@ -70,15 +70,15 @@ var ngClassDirective = classDirective('', true); /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngClassOdd + * @name ng.directive:ngClassOdd * * @description * The `ngClassOdd` and `ngClassEven` directives work exactly as - * {@link angular.module.ng.$compileProvider.directive.ngClass ngClass}, except it works in + * {@link ng.directive:ngClass ngClass}, except it works in * conjunction with `ngRepeat` and takes affect only on odd (even) rows. * * This directive can be applied only within a scope of an - * {@link angular.module.ng.$compileProvider.directive.ngRepeat ngRepeat}. + * {@link ng.directive:ngRepeat ngRepeat}. * * @element ANY * @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result @@ -117,15 +117,15 @@ var ngClassOddDirective = classDirective('Odd', 0); /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngClassEven + * @name ng.directive:ngClassEven * * @description * The `ngClassOdd` and `ngClassEven` works exactly as - * {@link angular.module.ng.$compileProvider.directive.ngClass ngClass}, except it works in + * {@link ng.directive:ngClass ngClass}, except it works in * conjunction with `ngRepeat` and takes affect only on odd (even) rows. * * This directive can be applied only within a scope of an - * {@link angular.module.ng.$compileProvider.directive.ngRepeat ngRepeat}. + * {@link ng.directive:ngRepeat ngRepeat}. * * @element ANY * @param {expression} ngClassEven {@link guide/expression Expression} to eval. The diff --git a/src/ng/directive/ngCloak.js b/src/ng/directive/ngCloak.js index b548193b..baa7afa8 100644 --- a/src/ng/directive/ngCloak.js +++ b/src/ng/directive/ngCloak.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngCloak + * @name ng.directive:ngCloak * * @description * The `ngCloak` directive is used to prevent the Angular html template from being briefly diff --git a/src/ng/directive/ngController.js b/src/ng/directive/ngController.js index 7b7ab06c..b6619d31 100644 --- a/src/ng/directive/ngController.js +++ b/src/ng/directive/ngController.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngController + * @name ng.directive:ngController * * @description * The `ngController` directive assigns behavior to a scope. This is a key aspect of how angular @@ -15,7 +15,7 @@ * * Controller — The `ngController` 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 ng.$route}` * service. * * @element ANY diff --git a/src/ng/directive/ngCsp.js b/src/ng/directive/ngCsp.js index 55fe8b3a..16b1a0e3 100644 --- a/src/ng/directive/ngCsp.js +++ b/src/ng/directive/ngCsp.js @@ -2,13 +2,13 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngCsp + * @name ng.directive:ngCsp * @priority 1000 * * @description * Enables [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) support. * This directive should be used on the root element of the application (typically the `` - * element or other element with the {@link angular.module.ng.$compileProvider.directive.ngApp ngApp} + * element or other element with the {@link ng.directive:ngApp ngApp} * directive). * * If enabled the performance of template expression evaluator will suffer slightly, so don't enable diff --git a/src/ng/directive/ngEventDirs.js b/src/ng/directive/ngEventDirs.js index 16635e07..4d079718 100644 --- a/src/ng/directive/ngEventDirs.js +++ b/src/ng/directive/ngEventDirs.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngClick + * @name ng.directive:ngClick * * @description * The ngClick allows you to specify custom behavior when @@ -55,7 +55,7 @@ forEach( /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngDblclick + * @name ng.directive:ngDblclick * * @description * The `ngDblclick` directive allows you to specify custom behavior on dblclick event. @@ -65,13 +65,13 @@ forEach( * dblclick. (Event object is available as `$event`) * * @example - * See {@link angular.module.ng.$compileProvider.directive.ngClick ngClick} + * See {@link ng.directive:ngClick ngClick} */ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngMousedown + * @name ng.directive:ngMousedown * * @description * The ngMousedown directive allows you to specify custom behavior on mousedown event. @@ -81,13 +81,13 @@ forEach( * mousedown. (Event object is available as `$event`) * * @example - * See {@link angular.module.ng.$compileProvider.directive.ngClick ngClick} + * See {@link ng.directive:ngClick ngClick} */ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngMouseup + * @name ng.directive:ngMouseup * * @description * Specify custom behavior on mouseup event. @@ -97,12 +97,12 @@ forEach( * mouseup. (Event object is available as `$event`) * * @example - * See {@link angular.module.ng.$compileProvider.directive.ngClick ngClick} + * See {@link ng.directive:ngClick ngClick} */ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngMouseover + * @name ng.directive:ngMouseover * * @description * Specify custom behavior on mouseover event. @@ -112,13 +112,13 @@ forEach( * mouseover. (Event object is available as `$event`) * * @example - * See {@link angular.module.ng.$compileProvider.directive.ngClick ngClick} + * See {@link ng.directive:ngClick ngClick} */ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngMouseenter + * @name ng.directive:ngMouseenter * * @description * Specify custom behavior on mouseenter event. @@ -128,13 +128,13 @@ forEach( * mouseenter. (Event object is available as `$event`) * * @example - * See {@link angular.module.ng.$compileProvider.directive.ngClick ngClick} + * See {@link ng.directive:ngClick ngClick} */ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngMouseleave + * @name ng.directive:ngMouseleave * * @description * Specify custom behavior on mouseleave event. @@ -144,13 +144,13 @@ forEach( * mouseleave. (Event object is available as `$event`) * * @example - * See {@link angular.module.ng.$compileProvider.directive.ngClick ngClick} + * See {@link ng.directive:ngClick ngClick} */ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngMousemove + * @name ng.directive:ngMousemove * * @description * Specify custom behavior on mousemove event. @@ -160,13 +160,13 @@ forEach( * mousemove. (Event object is available as `$event`) * * @example - * See {@link angular.module.ng.$compileProvider.directive.ngClick ngClick} + * See {@link ng.directive:ngClick ngClick} */ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngSubmit + * @name ng.directive:ngSubmit * * @description * Enables binding angular expressions to onsubmit events. diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js index 6d89e847..26107206 100644 --- a/src/ng/directive/ngInclude.js +++ b/src/ng/directive/ngInclude.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngInclude + * @name ng.directive:ngInclude * @restrict ECA * * @description @@ -18,7 +18,7 @@ * make sure you wrap it in quotes, e.g. `src="'myPartialTemplate.html'"`. * @param {string=} onload Expression to evaluate when a new partial is loaded. * - * @param {string=} autoscroll Whether `ngInclude` should call {@link angular.module.ng.$anchorScroll + * @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll * $anchorScroll} to scroll the viewport after the content is loaded. * * - If the attribute is not set, disable scrolling. @@ -72,8 +72,8 @@ /** * @ngdoc event - * @name angular.module.ng.$compileProvider.directive.ngInclude#$includeContentLoaded - * @eventOf angular.module.ng.$compileProvider.directive.ngInclude + * @name ng.directive:ngInclude#$includeContentLoaded + * @eventOf ng.directive:ngInclude * @eventType emit on the current ngInclude scope * @description * Emitted every time the ngInclude content is reloaded. diff --git a/src/ng/directive/ngInit.js b/src/ng/directive/ngInit.js index 73354765..d157f396 100644 --- a/src/ng/directive/ngInit.js +++ b/src/ng/directive/ngInit.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngInit + * @name ng.directive:ngInit * * @description * The `ngInit` directive specifies initialization tasks to be executed diff --git a/src/ng/directive/ngNonBindable.js b/src/ng/directive/ngNonBindable.js index 6165c6f6..6622677a 100644 --- a/src/ng/directive/ngNonBindable.js +++ b/src/ng/directive/ngNonBindable.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngNonBindable + * @name ng.directive:ngNonBindable * @priority 1000 * * @description diff --git a/src/ng/directive/ngPluralize.js b/src/ng/directive/ngPluralize.js index bf45645f..a3424cf5 100644 --- a/src/ng/directive/ngPluralize.js +++ b/src/ng/directive/ngPluralize.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngPluralize + * @name ng.directive:ngPluralize * @restrict EA * * @description diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index d5d3a64c..6dd74ef5 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngRepeat + * @name ng.directive:ngRepeat * * @description * The `ngRepeat` directive instantiates a template once per item from a collection. Each template diff --git a/src/ng/directive/ngShowHide.js b/src/ng/directive/ngShowHide.js index 56197b21..e381c1b7 100644 --- a/src/ng/directive/ngShowHide.js +++ b/src/ng/directive/ngShowHide.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngShow + * @name ng.directive:ngShow * * @description * The `ngShow` and `ngHide` directives show or hide a portion of the DOM tree (HTML) @@ -42,7 +42,7 @@ var ngShowDirective = ngDirective(function(scope, element, attr){ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngHide + * @name ng.directive:ngHide * * @description * The `ngHide` and `ngShow` directives hide or show a portion diff --git a/src/ng/directive/ngStyle.js b/src/ng/directive/ngStyle.js index 08b99ac4..5b0a3728 100644 --- a/src/ng/directive/ngStyle.js +++ b/src/ng/directive/ngStyle.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngStyle + * @name ng.directive:ngStyle * * @description * The `ngStyle` directive allows you to set CSS style on an HTML element conditionally. diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js index 52b501a6..7d4cc192 100644 --- a/src/ng/directive/ngSwitch.js +++ b/src/ng/directive/ngSwitch.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngSwitch + * @name ng.directive:ngSwitch * @restrict EA * * @description diff --git a/src/ng/directive/ngTransclude.js b/src/ng/directive/ngTransclude.js index aab61640..bf09b9c1 100644 --- a/src/ng/directive/ngTransclude.js +++ b/src/ng/directive/ngTransclude.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngTransclude + * @name ng.directive:ngTransclude * * @description * Insert the transcluded DOM here. diff --git a/src/ng/directive/ngView.js b/src/ng/directive/ngView.js index 28646822..6bfbb279 100644 --- a/src/ng/directive/ngView.js +++ b/src/ng/directive/ngView.js @@ -2,12 +2,12 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.ngView + * @name ng.directive:ngView * @restrict ECA * * @description * # Overview - * `ngView` is a directive that complements the {@link angular.module.ng.$route $route} service by + * `ngView` is a directive that complements the {@link 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. @@ -98,8 +98,8 @@ /** * @ngdoc event - * @name angular.module.ng.$compileProvider.directive.ngView#$viewContentLoaded - * @eventOf angular.module.ng.$compileProvider.directive.ngView + * @name ng.directive:ngView#$viewContentLoaded + * @eventOf ng.directive:ngView * @eventType emit on the current ngView scope * @description * Emitted every time the ngView content is reloaded. diff --git a/src/ng/directive/script.js b/src/ng/directive/script.js index 79f8b26e..16bd7d15 100644 --- a/src/ng/directive/script.js +++ b/src/ng/directive/script.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.script + * @name ng.directive:script * * @description * Load content of a script tag, with type `text/ng-template`, into `$templateCache`, so that the diff --git a/src/ng/directive/select.js b/src/ng/directive/select.js index b269973f..27a92c48 100644 --- a/src/ng/directive/select.js +++ b/src/ng/directive/select.js @@ -2,7 +2,7 @@ /** * @ngdoc directive - * @name angular.module.ng.$compileProvider.directive.select + * @name ng.directive:select * @restrict E * * @description @@ -23,7 +23,7 @@ * option. See example below for demonstration. * * Note: `ngOptions` provides iterator facility for `