From 63be222326f3badbb76371f82d49fed5ab9e3e65 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 13 Mar 2012 13:52:57 -0700 Subject: docs(input): Fix some broken links, add missing $, use ng- in examples --- ...ular.module.ng.$compileProvider.directive.ngdoc | 20 +++++++-------- docs/content/cookbook/advancedform.ngdoc | 30 +++++++++++----------- docs/content/cookbook/buzz.ngdoc | 20 +++++++-------- docs/content/cookbook/deeplinking.ngdoc | 8 +++--- docs/content/cookbook/form.ngdoc | 28 ++++++++++---------- docs/content/cookbook/helloworld.ngdoc | 4 +-- docs/content/cookbook/mvc.ngdoc | 12 ++++----- 7 files changed, 61 insertions(+), 61 deletions(-) (limited to 'docs/content') diff --git a/docs/content/api/angular.module.ng.$compileProvider.directive.ngdoc b/docs/content/api/angular.module.ng.$compileProvider.directive.ngdoc index 7ab79a94..43b03ae4 100644 --- a/docs/content/api/angular.module.ng.$compileProvider.directive.ngdoc +++ b/docs/content/api/angular.module.ng.$compileProvider.directive.ngdoc @@ -115,7 +115,7 @@ To understand this, lets look at a real world example with repeater:
   Hello {{user}}, you have these actions:
   
@@ -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.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
 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.ng-repeat ng-repeat} 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.ng-repeat ng-repeat} 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.ng-repeat ng-repeat}
 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.ng-transclude
+    ng-transclude}. 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.ng-repeat ng-repeat} or load the contents
+asynchronously such as {@link angular.module.ng.$compileProvider.directive.ng-view ng-view}. 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/advancedform.ngdoc b/docs/content/cookbook/advancedform.ngdoc
index 58a8dfd5..37c5da0d 100644
--- a/docs/content/cookbook/advancedform.ngdoc
+++ b/docs/content/cookbook/advancedform.ngdoc
@@ -58,35 +58,35 @@ detection, and preventing invalid form submission.
      $scope.cancel();
    }
    
-   
+

-

+


-
- , - -

+
+ , + +

- [ add ] -
- - - [ X ] + + [ X ]
- - + +

diff --git a/docs/content/cookbook/buzz.ngdoc b/docs/content/cookbook/buzz.ngdoc index ca6a22b4..bf900223 100644 --- a/docs/content/cookbook/buzz.ngdoc +++ b/docs/content/cookbook/buzz.ngdoc @@ -31,22 +31,22 @@ to retrieve Buzz activity and comments. } }; -
- - +
+ +
-
+

- - {{item.actor.name}} - + + {{item.actor.name}} + Expand replies: {{item.links.replies[0].count}}

{{item.object.content | html}} -
- - {{reply.actor.name}}: +
+ + {{reply.actor.name}}: {{reply.content | html}}
diff --git a/docs/content/cookbook/deeplinking.ngdoc b/docs/content/cookbook/deeplinking.ngdoc index 4db8d1c7..db5f057e 100644 --- a/docs/content/cookbook/deeplinking.ngdoc +++ b/docs/content/cookbook/deeplinking.ngdoc @@ -33,8 +33,8 @@ In this example we have a simple app which consist of two screens: The two partials are defined in the following URLs: -* ./examples/settings.html -* ./examples/welcome.html +* ./examples/settings.html +* ./examples/welcome.html @@ -73,7 +73,7 @@ The two partials are defined in the following URLs: $scope.cancel(); } -
+

Your App Chrome

[ Welcome | Settings ]
@@ -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.ng-view ng-view} 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 b811a1fc..afb30e36 100644 --- a/docs/content/cookbook/form.ngdoc +++ b/docs/content/cookbook/form.ngdoc @@ -32,30 +32,30 @@ allow a user to enter data. }; } -
+

-

+


-
- , - -

+
+ , + +

- [ add ] -
- - - [ X ] + + [ X ]

Debug View: @@ -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.ng-controller 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/cookbook/helloworld.ngdoc b/docs/content/cookbook/helloworld.ngdoc index 0d9f882a..629a3893 100644 --- a/docs/content/cookbook/helloworld.ngdoc +++ b/docs/content/cookbook/helloworld.ngdoc @@ -9,8 +9,8 @@ $scope.name = 'World'; } -
- Your name: +
+ Your name:
Hello {{name}}!
diff --git a/docs/content/cookbook/mvc.ngdoc b/docs/content/cookbook/mvc.ngdoc index cdb5ebdc..92033352 100644 --- a/docs/content/cookbook/mvc.ngdoc +++ b/docs/content/cookbook/mvc.ngdoc @@ -80,16 +80,16 @@ no connection between the controller and the view.

Tic-Tac-Toe

-
+
Next Player: {{nextMove}} -
Player {{winner}} has won!
+
Player {{winner}} has won!
- - + +
{{cell}}
{{cell}}
- +
-- cgit v1.2.3