Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking by object id is not possible #2

Open
asdeoz opened this issue Aug 3, 2017 · 0 comments
Open

Tracking by object id is not possible #2

asdeoz opened this issue Aug 3, 2017 · 0 comments

Comments

@asdeoz
Copy link

asdeoz commented Aug 3, 2017

With something like:

$scope.valueTypes = [ { id: 1, value: "Value 1" }, { id: 2, value: "Value 2" } ];

I can't do something like:

<custom-select ng-model="myModel" ng-options="type.id as type.value for type in valueTypes"></custom-select>

The model will have the right value but the select will stay blank or with the placeholder.

Is there any way to fix this?

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

No branches or pull requests

1 participant