Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upmat-select do not set the pre-selected value with the ngModel when the option is an object #8212
Comments
|
See the paragraph here about EDIT: Should be on the material.angular.io docs after the next release. |
|
Also take a look at @rafaelss95's example here: #6970 (comment) |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug, feature request, or proposal:
What is the expected behavior?
the mat has to set the user's role as the default selected value
What is the current behavior?
Initially, the mat-select is empty unless I select one of the options (the selection changes are reflected to the user.role so this is a correct behaviour)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular 4.4.6
material 2.0.0-beta.12
Is there anything else we should know?
I know it seems that this issue had been answered in #7771. But that case is with simple value types (number or string) . My issue appears when the value is an object