Angular 2+ plugin to automatic height control of textarea to fit the content.
NPM:
npm install --save ngx-textarea-autosizeYarn:
yarn add ngx-textarea-autosizeImport module to your @NgModule:
import { TextareaAutosizeModule } from 'ngx-textarea-autosize';
@NgModule({
imports: [
TextareaAutosizeModule
]
})Add directive to your textarea
<textarea autosize>Some text</textarea>