ngx-textarea-autosize2
v3.0.4
Published
Angular 2+ directive to automatically control height textarea to fit content (updated for angular 9.1)
Downloads
8
Readme
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>