0

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

Daniel Chikaka
  • 1,432
  • 4
  • 17
  • 28

1 Answers1

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:

Community
  • 1
  • 1
Edric
  • 24,639
  • 13
  • 81
  • 91