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/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 +-- 21 files changed, 102 insertions(+), 102 deletions(-) (limited to 'src/ng/directive') 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 `