I am trying apply auto-sizing on textarea in angular material 6.4.2 like below -
<mat-form-field>
<textarea matInput [matTextareaAutosize]="true" placeholder="Task description" formControlName="description" [errorStateMatcher]="ErrorMatcher">
</textarea>
</mat-form-field>
But it is throwing following error: Can't bind to 'matTextareaAutosize' since it isn't a known property of 'textarea'
What the wrong in my code?
in you app.moudle
import { MatInputModule } from '@angular/material';
and then add MatInputModule to your app.moudle imports
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With