ngOnInit () {
this.form = new FormGroup({
email: new FormControl("email@163.com", [Validators.required]),
password: new FormControl()
});
expected effect
didn"t show up.
also reports an error
<mat-form-field class="full-width" >
<input matInput type="text" placeholder="Email" formControlName="email" value="">
</mat-form-field>