Closed
Description
Documentation Feedback
The example phone input breaks the ability to use <mat-error>
. Please update the errorState
field from this to this in order to fix it. I spent a whole day trying to figure out why the example wouldn't work with <mat-error>
. Hopefully updating this will save some other poor souls some time.
public errorState: boolean = false;
public get errorState(): boolean {
return this.parts.invalid;
}
Affected documentation page: https://material.angular.io/components/form-field/examples