diff --git a/src/components-examples/material-experimental/mdc-form-field/mdc-form-field-custom-control/form-field-custom-control-example.ts b/src/components-examples/material-experimental/mdc-form-field/mdc-form-field-custom-control/form-field-custom-control-example.ts index 941911abdfd3..227080076314 100644 --- a/src/components-examples/material-experimental/mdc-form-field/mdc-form-field-custom-control/form-field-custom-control-example.ts +++ b/src/components-examples/material-experimental/mdc-form-field/mdc-form-field-custom-control/form-field-custom-control-example.ts @@ -1,7 +1,7 @@ import {FocusMonitor} from '@angular/cdk/a11y'; import {coerceBooleanProperty} from '@angular/cdk/coercion'; import {Component, ElementRef, Input, OnDestroy, Optional, Self} from '@angular/core'; -import {FormBuilder, FormGroup, ControlValueAccessor, NgControl} from '@angular/forms'; +import {FormBuilder, FormGroup, ControlValueAccessor, NgControl, Validators} from '@angular/forms'; import {MatFormFieldControl} from '@angular/material-experimental/mdc-form-field'; import {Subject} from 'rxjs'; @@ -78,8 +78,8 @@ export class MyTelInput implements ControlValueAccessor, MatFormFieldControl { diff --git a/src/components-examples/material/form-field/form-field-custom-control/form-field-custom-control-example.ts b/src/components-examples/material/form-field/form-field-custom-control/form-field-custom-control-example.ts index 9addd3d84193..5dca56f13b3d 100644 --- a/src/components-examples/material/form-field/form-field-custom-control/form-field-custom-control-example.ts +++ b/src/components-examples/material/form-field/form-field-custom-control/form-field-custom-control-example.ts @@ -1,7 +1,7 @@ import {FocusMonitor} from '@angular/cdk/a11y'; import {coerceBooleanProperty} from '@angular/cdk/coercion'; import {Component, ElementRef, Input, OnDestroy, Optional, Self} from '@angular/core'; -import {FormBuilder, FormGroup, ControlValueAccessor, NgControl} from '@angular/forms'; +import {FormBuilder, FormGroup, ControlValueAccessor, NgControl, Validators} from '@angular/forms'; import {MatFormFieldControl} from '@angular/material/form-field'; import {Subject} from 'rxjs'; @@ -78,8 +78,8 @@ export class MyTelInput implements ControlValueAccessor, MatFormFieldControl {