From 82d90a409692e97a79c3bf4708ee80796c7de2d6 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 6 Apr 2012 16:35:17 -0700 Subject: fix(docs): change all directive references to use the normalized names --- ...ular.module.ng.$compileProvider.directive.ngdoc | 18 ++++++++-------- docs/content/cookbook/deeplinking.ngdoc | 2 +- docs/content/cookbook/form.ngdoc | 2 +- .../guide/dev_guide.bootstrap.auto_bootstrap.ngdoc | 8 ++++---- .../dev_guide.bootstrap.manual_bootstrap.ngdoc | 10 ++++----- docs/content/guide/dev_guide.bootstrap.ngdoc | 2 +- .../guide/dev_guide.di.understanding_di.ngdoc | 4 ++-- docs/content/guide/dev_guide.forms.ngdoc | 24 +++++++++++----------- docs/content/guide/dev_guide.i18n.ngdoc | 2 +- .../dev_guide.mvc.understanding_controller.ngdoc | 17 +++++++-------- .../guide/dev_guide.mvc.understanding_model.ngdoc | 4 ++-- .../guide/dev_guide.mvc.understanding_view.ngdoc | 4 ++-- docs/content/guide/dev_guide.overview.ngdoc | 8 ++++---- .../content/guide/dev_guide.scopes.internals.ngdoc | 14 ++++++------- docs/content/guide/dev_guide.scopes.ngdoc | 2 +- .../dev_guide.scopes.understanding_scopes.ngdoc | 2 +- .../guide/dev_guide.services.$location.ngdoc | 2 +- .../guide/dev_guide.templates.css-styling.ngdoc | 4 ++-- docs/content/guide/dev_guide.templates.ngdoc | 4 ++-- docs/content/tutorial/step_00.ngdoc | 21 ++++++++++--------- docs/content/tutorial/step_02.ngdoc | 4 ++-- docs/content/tutorial/step_03.ngdoc | 12 +++++------ docs/src/ngdoc.js | 18 +++++++++++----- 23 files changed, 99 insertions(+), 89 deletions(-) (limited to 'docs') diff --git a/docs/content/api/angular.module.ng.$compileProvider.directive.ngdoc b/docs/content/api/angular.module.ng.$compileProvider.directive.ngdoc index f66aa9a1..722372b2 100644 --- a/docs/content/api/angular.module.ng.$compileProvider.directive.ngdoc +++ b/docs/content/api/angular.module.ng.$compileProvider.directive.ngdoc @@ -126,8 +126,8 @@ a change in DOM structure such as in repeaters. When the above example is compiled, the compiler visits every node and looks for directives. The `{{user}}` is an example of {@link angular.module.ng.$interpolate interpolation} directive. {@link -angular.module.ng.$compileProvider.directive.ng-repeat ng-repeat} is another directive. But {@link -angular.module.ng.$compileProvider.directive.ng-repeat ng-repeat} has a dilemma. It needs to be +angular.module.ng.$compileProvider.directive.ngRepeat ngRepeat} is another directive. But {@link +angular.module.ng.$compileProvider.directive.ngRepeat ngRepeat} has a dilemma. It needs to be able to quickly stamp out new `li`s for every `action` in `user.actions`. This means that it needs to save a clean copy of the `li` element for cloning purposes and as new `action`s are inserted, the template `li` element needs to be cloned and inserted into `ul`. But cloning the `li` element @@ -143,12 +143,12 @@ the directives are identified and sorted by priority, and a linking phase where links a specific instance of the {@link angular.module.ng.$rootScope.Scope scope} and the specific instance of an `li` is performed. -{@link angular.module.ng.$compileProvider.directive.ng-repeat ng-repeat} works by preventing the +{@link angular.module.ng.$compileProvider.directive.ngRepeat ngRepeat} works by preventing the compilation process form descending into `li` element. Instead the {@link -angular.module.ng.$compileProvider.directive.ng-repeat ng-repeat} directive compiles `li` +angular.module.ng.$compileProvider.directive.ngRepeat ngRepeat} directive compiles `li` seperatly. The result of of the `li` element compilation is a linking function which contains all of the directives contained in the `li` element ready to be attached to a specific clone of `li` -element. At runtime the {@link angular.module.ng.$compileProvider.directive.ng-repeat ng-repeat} +element. At runtime the {@link angular.module.ng.$compileProvider.directive.ngRepeat ngRepeat} watches the expression and as items are added to the array it clones the `li` element, creates a new {@link angular.module.ng.$rootScope.Scope scope} for the cloned `li` element and calls the link function on the cloned `li`. @@ -415,8 +415,8 @@ compiler}. The attributes are: append the template to the element. * `transclude` - compile the content of the element and make it available to the directive. - Typically used with {@link api/angular.module.ng.$compileProvider.directive.ng-transclude - ng-transclude}. The advantage of transclusion is that the linking function receives a + Typically used with {@link api/angular.module.ng.$compileProvider.directive.ngTransclude + ngTransclude}. The advantage of transclusion is that the linking function receives a transclusion function which is pre-bound to the correct scope. In a typical setup the widget creates an `isolate` scope, but the transclusion is not a child, but a sibling of the `isolate` scope. This makes it possible for the widget to have private state, and the transclusion to @@ -440,8 +440,8 @@ compiler}. The attributes are: Compile function deals with transforming the template DOM. Since most directives do not do template transformation, it is not used often. Examples which require compile functions are directives which transform template DOM such as {@link -angular.module.ng.$compileProvider.directive.ng-repeat ng-repeat} or load the contents -asynchronously such as {@link angular.module.ng.$compileProvider.directive.ng-view ng-view}. The +angular.module.ng.$compileProvider.directive.ngRepeat ngRepeat} or load the contents +asynchronously such as {@link angular.module.ng.$compileProvider.directive.ngView ngView}. The compile functions takes the following arguments. * `tElement` - template element - The element where the directive has been declared. It is diff --git a/docs/content/cookbook/deeplinking.ngdoc b/docs/content/cookbook/deeplinking.ngdoc index db5f057e..10af8a2d 100644 --- a/docs/content/cookbook/deeplinking.ngdoc +++ b/docs/content/cookbook/deeplinking.ngdoc @@ -106,7 +106,7 @@ The two partials are defined in the following URLs: routes. * The {@link api/angular.module.ng.$route $route} service then watches the URL and instantiates the appropriate controller when the URL changes. -* The {@link api/angular.module.ng.$compileProvider.directive.ng-view ng-view} widget loads the +* The {@link api/angular.module.ng.$compileProvider.directive.ngView ngView} widget loads the view when the URL changes. It also sets the view scope to the newly instantiated controller. * Changing the URL is sufficient to change the controller and view. It makes no difference whether the URL is changed programatically or by the user. diff --git a/docs/content/cookbook/form.ngdoc b/docs/content/cookbook/form.ngdoc index b335cecf..e7f87d7c 100644 --- a/docs/content/cookbook/form.ngdoc +++ b/docs/content/cookbook/form.ngdoc @@ -102,7 +102,7 @@ allow a user to enter data. # Things to notice -* The user data model is initialized {@link api/angular.module.ng.$compileProvider.directive.ng-controller controller} and is +* The user data model is initialized {@link api/angular.module.ng.$compileProvider.directive.ngController controller} and is available in the {@link api/angular.module.ng.$rootScope.Scope scope} with the initial data. * For debugging purposes we have included a debug view of the model to better understand what is going on. diff --git a/docs/content/guide/dev_guide.bootstrap.auto_bootstrap.ngdoc b/docs/content/guide/dev_guide.bootstrap.auto_bootstrap.ngdoc index 2567cf68..6fbb528d 100644 --- a/docs/content/guide/dev_guide.bootstrap.auto_bootstrap.ngdoc +++ b/docs/content/guide/dev_guide.bootstrap.auto_bootstrap.ngdoc @@ -2,7 +2,7 @@ @name Developer Guide: Initializing Angular: Automatic Initialization @description -For Angular to manage the DOM for your application, it needs to compile some or all of an HTML page. Angular does this initialization automatically when you load the angular.js script into your page and insert an `ng-app` directive (attribute) into one of the page's elements. For example, we can tell Angular to initialize the entire document: +For Angular to manage the DOM for your application, it needs to compile some or all of an HTML page. Angular does this initialization automatically when you load the angular.js script into your page and insert an `ngApp` directive (attribute) into one of the page's elements. For example, we can tell Angular to initialize the entire document:
@@ -16,7 +16,7 @@ For Angular to manage the DOM for your application, it needs to compile some or