fix(text-input): change to after content checked to get the value

references #710
This commit is contained in:
Brandy Carney
2015-12-17 19:26:02 -05:00
parent 7c1b89f369
commit 24c3b3d787
3 changed files with 42 additions and 20 deletions

View File

@ -490,7 +490,8 @@ export class TextInputElement {
if (ngControl) this.ngControl = ngControl;
}
ngOnInit() {
ngAfterContentChecked() {
console.log("Value", this.ngControl.value);
if (this.ngControl) this.value = this.ngControl.value;
this.wrapper && this.wrapper.hasValue(this.value);
}