-
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-input] Impossible to use safe navigation operator? #1073
Comments
I find out that |
Workaround: In my code I just initialise the property I wanted to display in the That solved my problem of course. So maybe this is a feature instead of bug. Please choose and set labels or close the issue. Thank you |
This is the intended behavior of Angular itself (not specific to material). The two-way binding consists of both reading the value and writing the value, where the |
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:
Bug (?)
What is the expected behavior?
<md-input [(ngModel)]="activeApp?.name"></md-input>
should work.activeApp
is an observarbe in my code:What is the current behavior?
Plunker: http://plnkr.co/edit/Ua7KKEOGCl0nyMzTTwkq?p=preview
(check console)
Which versions of Angular, Material, OS, browsers are affected?
Angular version: 2.0.0-rc.5
Angular material versions: 2.0.0-alpha.7-4
Is there anything else we should know?
If I don't use the safe operator it works as it should.
The text was updated successfully, but these errors were encountered: