Skip to content

Commit d2089a1

Browse files
committed
docs - adding cross links from directives to guide.expression
1 parent e9ce225 commit d2089a1

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

src/directives.js

+25-26
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* before the template enters execution mode during bootstrap.
99
*
1010
* @element ANY
11-
* @param {expression} expression to eval.
11+
* @param {expression} expression {@link guide.expression Expression} to eval.
1212
*
1313
* @example
1414
<doc:example>
@@ -43,7 +43,7 @@ angularDirective("ng:init", function(expression){
4343
* The `ng:controller` directive specifies the MVC controller class
4444
*
4545
* @element ANY
46-
* @param {expression} expression to eval.
46+
* @param {expression} expression {@link guide.expression Expression} to eval.
4747
*
4848
* @example
4949
* Here is a simple form for editing the user contact information. Adding, removing clearing and
@@ -130,7 +130,7 @@ angularDirective("ng:controller", function(expression){
130130
* without displaying the result to the user.
131131
*
132132
* @element ANY
133-
* @param {expression} expression to eval.
133+
* @param {expression} expression {@link guide.expression Expression} to eval.
134134
*
135135
* @example
136136
* Notice that `{{` `obj.multiplied = obj.a * obj.b` `}}` has a side effect of assigning
@@ -178,7 +178,7 @@ angularDirective("ng:eval", function(expression){
178178
* `<span ng:bind="expression"></span>` at bootstrap time.
179179
*
180180
* @element ANY
181-
* @param {expression} expression to eval.
181+
* @param {expression} expression {@link guide.expression Expression} to eval.
182182
*
183183
* @example
184184
* Try it here: enter text in text box and watch the greeting change.
@@ -335,15 +335,15 @@ var REMOVE_ATTRIBUTES = {
335335
* @name angular.directive.ng:bind-attr
336336
*
337337
* @description
338-
* The `ng:bind-attr` attribute specifies that the element attributes
339-
* which should be replaced by the expression in it. Unlike `ng:bind`
340-
* the `ng:bind-attr` contains a JSON key value pairs representing
341-
* which attributes need to be changed. You don’t usually write the
342-
* `ng:bind-attr` in the HTML since embedding
343-
* <tt ng:non-bindable>{{expression}}</tt> into the
344-
* attribute directly is the preferred way. The attributes get
345-
* translated into `<span ng:bind-attr="{attr:expression}"/>` at
346-
* bootstrap time.
338+
* The `ng:bind-attr` attribute specifies that {@link guide.data-binding databindings} should be
339+
* created between element attributes and given expressions. Unlike `ng:bind` the `ng:bind-attr`
340+
* contains a JSON key value pairs representing which attributes need to be mapped to which
341+
* {@link guide.expression expressions}.
342+
*
343+
* You don’t usually write the `ng:bind-attr` in the HTML since embedding
344+
* <tt ng:non-bindable>{{expression}}</tt> into the attribute directly as the attribute value is
345+
* preferred. The attributes get translated into `<span ng:bind-attr="{attr:expression}"/>` at
346+
* compile time.
347347
*
348348
* This HTML snippet is preferred way of working with `ng:bind-attr`
349349
* <pre>
@@ -425,7 +425,7 @@ angularDirective("ng:bind-attr", function(expression){
425425
* element is clicked.
426426
*
427427
* @element ANY
428-
* @param {expression} expression to eval upon click.
428+
* @param {expression} expression {@link guide.expression Expression} to eval upon click.
429429
*
430430
* @example
431431
<doc:example>
@@ -476,7 +476,7 @@ angularDirective("ng:click", function(expression, element){
476476
* server and reloading the current page).
477477
*
478478
* @element form
479-
* @param {expression} expression to eval.
479+
* @param {expression} expression {@link guide.expression Expression} to eval.
480480
*
481481
* @example
482482
<doc:example>
@@ -524,7 +524,7 @@ angularDirective("ng:submit", function(expression, element) {
524524
* an evaluation on variable change.
525525
*
526526
* @element ANY
527-
* @param {expression} expression to eval.
527+
* @param {expression} expression {@link guide.expression Expression} to eval.
528528
*
529529
* @example
530530
* Notice that the counter is incremented
@@ -584,7 +584,7 @@ function ngClass(selector) {
584584
* conditionally.
585585
*
586586
* @element ANY
587-
* @param {expression} expression to eval.
587+
* @param {expression} expression {@link guide.expression Expression} to eval.
588588
*
589589
* @example
590590
<doc:example>
@@ -625,7 +625,7 @@ angularDirective("ng:class", ngClass(function(){return true;}));
625625
* and takes affect only on odd (even) rows.
626626
*
627627
* @element ANY
628-
* @param {expression} expression to eval. Must be inside
628+
* @param {expression} expression {@link guide.expression Expression} to eval. Must be inside
629629
* `ng:repeat`.
630630
*
631631
* @example
@@ -663,7 +663,7 @@ angularDirective("ng:class-odd", ngClass(function(i){return i % 2 === 0;}));
663663
* and takes affect only on odd (even) rows.
664664
*
665665
* @element ANY
666-
* @param {expression} expression to eval. Must be inside
666+
* @param {expression} expression {@link guide.expression Expression} to eval. Must be inside
667667
* `ng:repeat`.
668668
*
669669
* @example
@@ -700,8 +700,8 @@ angularDirective("ng:class-even", ngClass(function(i){return i % 2 === 1;}));
700700
* of the HTML conditionally.
701701
*
702702
* @element ANY
703-
* @param {expression} expression if truthy then the element is
704-
* shown or hidden respectively.
703+
* @param {expression} expression If the {@link guide.expression expression} truthy then the element
704+
* is shown or hidden respectively.
705705
*
706706
* @example
707707
<doc:example>
@@ -741,8 +741,8 @@ angularDirective("ng:show", function(expression, element){
741741
* of the HTML conditionally.
742742
*
743743
* @element ANY
744-
* @param {expression} expression if truthy then the element is
745-
* shown or hidden respectively.
744+
* @param {expression} expression If the {@link guide.expression expression} truthy then the element
745+
* is shown or hidden respectively.
746746
*
747747
* @example
748748
<doc:example>
@@ -781,9 +781,8 @@ angularDirective("ng:hide", function(expression, element){
781781
* The ng:style allows you to set CSS style on an HTML element conditionally.
782782
*
783783
* @element ANY
784-
* @param {expression} expression which evals to an object whes key's are
785-
* CSS style names and values are coresponding values for those
786-
* CSS keys.
784+
* @param {expression} expression {@link guide.expression Expression} which evals to an object who's
785+
* keys are CSS style names and values are coresponding values for those CSS keys.
787786
*
788787
* @example
789788
<doc:example>

0 commit comments

Comments
 (0)