docs(select): make more explicit that track by+select as will throw an error

Closes #9503
This commit is contained in:
Jeff Cross
2014-10-09 14:33:34 -07:00
parent 9e0ab14826
commit b90f5e59cf

View File

@@ -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: &lt;select ng-options="item.subItem as item.label for item in values track by item.id" ng-model="selected"&gt;
* values: [{id: 1, label: 'aLabel', subItem: {name: 'aSubItem'}}, {id: 2, label: 'bLabel', subItem: {name: 'bSubItemß'}}],