Angular Material: how to set floatPlaceholder to never
You can set the floatPlaceholder input to: auto, always, never.
<md-input-container floatPlaceholder="never">
<input type="text"
mdInput
placeholder="Search...">
</md-input-container>
Update (Angular Material 6):
Now you have to use floatLabel
:
<mat-form-field floatLabel="never">
<input matInput placeholder="Search...">
</mat-form-field>
Stackblitz Demo