/ngx-textarea-autosize

Automatically control height textarea to fit content.

Primary LanguageTypeScript

ngx-textarea-autosize

The plugin for Angular 4 that automatically control height textarea to fit 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>