I´ve encountered this problem where I use the mat Input
<mat-form-field>
<input matInput placeholder="Ex. Pizza" value="Sushi">
</mat-form-field>`
The thing is, it displays correctly, but I can`t edit it , for some reason.
I would appreciate any help, thank you.
I have already imported all necessary things the angular material docs tells me. I really don't know what is happening, and it has never ocurred this to me before. I`ve then tried with a native html input, this one does not even appear.
there might be different reasons, why your app is not displaying the value. I guess you are using
{ ReactiveFormsModule } from '@angular/forms';
In this case, the value attribute can't be set manually but through the
[formGroup]
in thecomponent.ts
file. See here: https://angular.dev/guide/forms/reactive-forms/If this is not the case, you could provide more information about the structure of your imports and code.