I want to change the existing input lines into normal input boxes. How do i accomplish that? I'm using Angular Material 6.4.1
Asked
Active
Viewed 1,816 times
0
-
1Use a normal input \o/ – FAISAL Jul 25 '18 at 11:03
-
1remove `matInput` from your `` ? – Tim Martens Jul 25 '18 at 11:04
-
Did you mean _filled text fields_? – Edric Jul 31 '18 at 16:02
1 Answers
0
If you mean normal input boxes as filled text fields, this can be done by setting the appearance
property of the form field element to fill
for a filled text field:
<mat-form-field appearance="fill">
<mat-label>Email</mat-label>
<input matInput [(ngModel)]="email">
<!-- ... -->
</mat-form-field>
<!-- ... -->
See also: