3.0.4 • Published 4 years ago
ngx-textarea-autosize2 v3.0.4
ngx-textarea-autosize2
Angular 2+ plugin to automatic height control of textarea to fit the content.
This is fixed version of ngx-textarea-autosize
created by Vladimir Evseev.
Installation:
NPM:
npm install --save ngx-textarea-autosize
Yarn:
yarn add ngx-textarea-autosize
Usage:
Import module to your @NgModule:
import { TextareaAutosizeModule } from 'ngx-textarea-autosize2';
@NgModule({
imports: [
TextareaAutosizeModule
]
})
Add directive to your textarea
<textarea autosize>Some text</textarea>