Skip to content

Commit b90f5e5

Browse files
committed
docs(select): make more explicit that track by+select as will throw an error
Closes angular#9503
1 parent 9e0ab14 commit b90f5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/directive/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var ngOptionsMinErr = minErr('ngOptions');
4141
* or property name (for object data sources) of the value within the collection.
4242
* </div>
4343
*
44-
* **Note:** Using `select as` together with `trackexpr` is not possible (and will throw).
44+
* **Note:** Using `select as` together with `trackexpr` is not possible (and will throw an error).
4545
* Reasoning:
4646
* - Example: &lt;select ng-options="item.subItem as item.label for item in values track by item.id" ng-model="selected"&gt;
4747
* values: [{id: 1, label: 'aLabel', subItem: {name: 'aSubItem'}}, {id: 2, label: 'bLabel', subItem: {name: 'bSubItemß'}}],

0 commit comments

Comments
 (0)