Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 495 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 495 Bytes

ngx-textarea-autosize

Angular 2+ plugin to automatic height control of textarea to fit the content.

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-autosize';

@NgModule({
  imports: [
    TextareaAutosizeModule
  ]
})

Add directive to your textarea

<textarea autosize>Some text</textarea>