Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
docs(ngSelected): note that it doesn't interact with ngModel
Browse files Browse the repository at this point in the history
Closes #14916
Related #14876
  • Loading branch information
Narretz committed Jul 15, 2016
1 parent aea62af commit cd06ccc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ng/directive/attrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,13 @@
* A special directive is necessary because we cannot use interpolation inside the `selected`
* attribute. See the {@link guide/interpolation interpolation guide} for more info.
*
* <div class="alert alert-warning">
* **Note:** `ngSelected` does not interact with the `select` and `ngModel` directives, it only
* sets the `selected` attribute on the element. If you are using `ngModel` on the select, you
* should not use `ngSelected` on the options, as `ngModel` will set the select value and
* selected options.
* </div>
*
* @example
<example>
<file name="index.html">
Expand Down

0 comments on commit cd06ccc

Please sign in to comment.