Updated Version
There’s an updated version of this article here:
Scenario
We have a material search form field:
<mat-form-field><input matInput placeholder="Search"></mat-form-field>
And we want to turn off the floating label.
Approach
Just add floatLabel='never'
.