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

ngOptions documentation and example directly contradict each other #13134

Closed
weshardee opened this issue Oct 20, 2015 · 2 comments
Closed

ngOptions documentation and example directly contradict each other #13134

weshardee opened this issue Oct 20, 2015 · 2 comments

Comments

@weshardee
Copy link

From the docs:

Do not use select as and track by in the same expression. They are not designed to work together.

Then immediately following that, there is an example where they are used together in the same expression:

item.subItem as item.label for item in values track by item.id

Either the code example directly contradicts the previous statement, or I'm misinterpreting this and the documentation is very confusing. I ran this by a couple of other devs to validate that others are interpreting it the same way I am.

@ryanhart2
Copy link
Contributor

This is a duplicate of #11768, and there is a PR in progress #13007.

@weshardee
Copy link
Author

Oops. My bad. I tried looking but didn't see that other issue. Thanks for taking a look.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants