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

ngOptions documentation and example directly contradict each other #13134

Closed
@weshardee

Description

@weshardee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions