diff options
| author | Dan Matthews | 2014-01-15 13:00:48 -0500 |
|---|---|---|
| committer | Brian Ford | 2014-01-21 16:58:41 -0800 |
| commit | 3c12d36e730dfbf8e2dbba773df5879437276d7a (patch) | |
| tree | 51598ec18831ed80c907c57b5522c6614ced52b4 /src/ng/directive/select.js | |
| parent | fd6bac7de56f728a89782dc80c78f7d5c21bbc65 (diff) | |
| download | angular.js-3c12d36e730dfbf8e2dbba773df5879437276d7a.tar.bz2 | |
docs(select): add object comparison warning
Diffstat (limited to 'src/ng/directive/select.js')
| -rw-r--r-- | src/ng/directive/select.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ng/directive/select.js b/src/ng/directive/select.js index c74791c8..e429af5f 100644 --- a/src/ng/directive/select.js +++ b/src/ng/directive/select.js @@ -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. |
