Skip to content

Commit 669ce0b

Browse files
austinoneilpetebacondarwin
authored andcommitted
docs(ngOptions): correct links
remove redundant link to ngOptions and add link to ngRepeat
1 parent aab4399 commit 669ce0b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ng/directive/ngOptions.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ var ngOptionsMinErr = minErr('ngOptions');
1717
* elements for the `<select>` element using the array or object obtained by evaluating the
1818
* `ngOptions` comprehension expression.
1919
*
20-
* In many cases, `ngRepeat` can be used on `<option>` elements instead of `ngOptions` to achieve a
21-
* similar result. However, `ngOptions` provides some benefits such as reducing memory and
20+
* In many cases, {@link ng.directive:ngRepeat ngRepeat} can be used on `<option>` elements
21+
* instead of `ngOptions` to achieve a similar result.
22+
* However, `ngOptions` provides some benefits such as reducing memory and
2223
* increasing speed by not creating a new scope for each repeated instance, as well as providing
2324
* more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
2425
* comprehension expression. `ngOptions` should be used when the `<select>` model needs to be bound

0 commit comments

Comments
 (0)