docs(ngOptions): correct links
remove redundant link to ngOptions and add link to ngRepeat
This commit is contained in:
committed by
Peter Bacon Darwin
parent
00b01e09ca
commit
05896d44ad
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user