docs(ngOptions): correct links

remove redundant link to ngOptions and add link to ngRepeat
This commit is contained in:
Austin O'Neil
2016-09-09 15:34:29 -06:00
committed by Peter Bacon Darwin
parent 00b01e09ca
commit 05896d44ad
+3 -2
View File
@@ -17,8 +17,9 @@ var ngOptionsMinErr = minErr('ngOptions');
* elements for the `<select>` element using the array or object obtained by evaluating the
* `ngOptions` comprehension expression.
*
* In many cases, `ngRepeat` can be used on `<option>` elements instead of `ngOptions` to achieve a
* similar result. However, `ngOptions` provides some benefits such as reducing memory and
* In many cases, {@link ng.directive:ngRepeat ngRepeat} can be used on `<option>` elements
* instead of `ngOptions` to achieve a similar result.
* However, `ngOptions` provides some benefits such as reducing memory and
* increasing speed by not creating a new scope for each repeated instance, as well as providing
* more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
* comprehension expression. `ngOptions` should be used when the `<select>` model needs to be bound