mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
docs(select): make more explicit that track by+select as will throw an error
Closes #9503
This commit is contained in:
@@ -41,7 +41,7 @@ var ngOptionsMinErr = minErr('ngOptions');
|
||||
* or property name (for object data sources) of the value within the collection.
|
||||
* </div>
|
||||
*
|
||||
* **Note:** Using `select as` together with `trackexpr` is not possible (and will throw).
|
||||
* **Note:** Using `select as` together with `trackexpr` is not possible (and will throw an error).
|
||||
* Reasoning:
|
||||
* - Example: <select ng-options="item.subItem as item.label for item in values track by item.id" ng-model="selected">
|
||||
* values: [{id: 1, label: 'aLabel', subItem: {name: 'aSubItem'}}, {id: 2, label: 'bLabel', subItem: {name: 'bSubItemß'}}],
|
||||
|
||||
Reference in New Issue
Block a user