You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the `MdInputDirective` tries to cache the `value` of the input.
To do this, the `MdInputDirective` needs to listen for `NgControl` value changes and for native `(change)` events.
This will be problematic when a value is set directly to the input element (using `[value]` property binding) because Angular is only able to recognize this change in the first ChangeDetection.
```html
<md-input-container>
<input md-input [value]="myValue" placeholder="Label">
</md-input-container>
```
The approach of updating the value in the `ngAfterViewInit` lifecycle hook, will result in a binding change while being in a ChangeDetection, which leads to a ChangeDetection error.
```
Expression has changed after it was checked. Previous value: 'true'. Current value: 'false'.
```
Fixesangular#2441. Fixesangular#2363
0 commit comments