mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs(select): add object comparison warning
This commit is contained in:
parent
fd6bac7de5
commit
3c12d36e73
1 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,11 @@ var ngOptionsMinErr = minErr('ngOptions');
|
|||
* represented by the selected option will be bound to the model identified by the `ngModel`
|
||||
* directive.
|
||||
*
|
||||
* <div class="alert alert-warning">
|
||||
* **Note:** `ngModel` compares by reference, not value. This is important when binding to an
|
||||
* array of objects. See an example {@link http://jsfiddle.net/qWzTb/ in this jsfiddle}.
|
||||
* </div>
|
||||
*
|
||||
* Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
|
||||
* be nested into the `<select>` element. This element will then represent the `null` or "not selected"
|
||||
* option. See example below for demonstration.
|
||||
|
|
|
|||
Loading…
Reference in a new issue