-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Md-Select start value or active value #1973
Comments
Hi, md-select has not been released yet.
|
@bastienlemaitre Hi, I am aware of that, but alpha.11 is already the next version and I can't find any plans (md-select in projects) to realize this feature. |
We don't yet have an exact date for the next release. |
ok, no worries. |
@dahaupt I don't quite follow- is this not just the |
@dahaupt The select is a custom value accessor, so you should be able to use ngModel or any other available form directive in Angular 2.
|
@kara & @jelbourn This would lead me to set the value with a FormControl object for example. Let's stay in the demo-app select example:
This should set a start value of the md-select component. But even if the value is right now, I can just see the placeholder: This button works fine:
How can I achieve that in the TypeScript of my component before? What am I doing wrong? |
@dahaupt Aha! Okay, I see what you're talking about, thanks for clarifying. While setting the initial value using |
@kara Thanks and keep up the great work! 👍 |
@kara can you please update plan for December ? These from november are OK? Q: What's about 2 new employee (planned for October) ? |
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. |
Bug, feature request, or proposal:
Feature request
What is the expected behavior?
The Md-Select-Component should be able to have a start value, which should remain active even after the page has been reloaded.
After reloading or switching routes I wanna see it like this:
What is the current behavior?
We can't set a start value for select. We can click a button to set it, but there is no attribute available to bind it directly with a variable.
What are the steps to reproduce?
Look into existing select examples and try to set a startup value.
Which versions of Angular, Material, OS, browsers are affected?
Angular Material latest version (from master)
Is there anything else we should know?
I am not sure if I just don't see the way to do it or if it's already planned for the future.
The text was updated successfully, but these errors were encountered: